diff --git a/source/net/filebot/web/WebRequest.java b/source/net/filebot/web/WebRequest.java index 0cb2e6c3..7a65b836 100644 --- a/source/net/filebot/web/WebRequest.java +++ b/source/net/filebot/web/WebRequest.java @@ -343,11 +343,11 @@ public final class WebRequest { String log = String.format(Locale.ROOT, "Received %,d bytes", data.remaining()); // log entire response content if enabled - SystemProperty response = SystemProperty.of("net.filebot.web.WebRequest.log.response", Boolean::parseBoolean, Boolean.FALSE); - if (response.get()) { + boolean printResponse = SystemProperty.of("net.filebot.web.WebRequest.log.response", Boolean::parseBoolean, Boolean.FALSE).get(); + + if (printResponse) { return log + System.lineSeparator() + UTF_8.decode(data.duplicate()) + System.lineSeparator(); } - return log; };