Fix: include any unhandled error response from server in error logs (#265)

This commit is contained in:
Luis Uguina
2020-06-16 23:22:21 +10:00
committed by GitHub
parent 231c1ee448
commit 29f25f4f7e

View File

@@ -511,7 +511,7 @@ public class Server extends Thread {
return ServerCode.ERROR_BAD_RESPONSE; return ServerCode.ERROR_BAD_RESPONSE;
} }
else { else {
System.out.println(response.body().string()); this.log.error(String.format("Server::HTTPSendFile Unknown response received from server: %s", response.body().string()));
} }
return ServerCode.UNKNOWN; return ServerCode.UNKNOWN;