1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 16:28:51 -05:00
This commit is contained in:
Reinhard Pointner 2016-05-24 21:51:02 +08:00
parent 6bf68fea55
commit 9eb8d67007

View File

@ -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<Boolean> 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;
};