Skip to content

Commit 3a16a32

Browse files
committed
Only log API responses in dev mode
1 parent e00897e commit 3a16a32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Classes/PoEAPI.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function PoEAPIClass:DownloadWithRefresh(endpoint, callback)
157157
self.retries = 0
158158
if errMsg then
159159
ConPrintf("Failed to download %s: %s", endpoint, errMsg)
160-
elseif response and response.body then
160+
elseif response and response.body and launch.devMode then
161161
-- create the file and log the name file
162162
local file = io.open(filename, "w")
163163
if file then

0 commit comments

Comments
 (0)