better log
This commit is contained in:
@@ -390,6 +390,7 @@ public class Client {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.log.debug("Sending error to server (type: " + error + ")");
|
||||||
try {
|
try {
|
||||||
File temp_file = File.createTempFile("farm_", "");
|
File temp_file = File.createTempFile("farm_", "");
|
||||||
temp_file.createNewFile();
|
temp_file.createNewFile();
|
||||||
@@ -711,7 +712,7 @@ public class Client {
|
|||||||
int ret = this.server.HTTPGetFile(url, local_path, this.gui, update_ui);
|
int ret = this.server.HTTPGetFile(url, local_path, this.gui, update_ui);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
this.gui.error("Client::downloadFile problem with Utils.HTTPGetFile returned " + ret);
|
this.gui.error("Client::downloadFile problem with Utils.HTTPGetFile returned " + ret);
|
||||||
this.log.debug("Client::downloadFile problem with Utils.HTTPGetFile removing local file (path: " + local_path + ")");
|
this.log.debug("Client::downloadFile problem with Utils.HTTPGetFile (return: " + ret + ") removing local file (path: " + local_path + ")");
|
||||||
local_path_file.delete();
|
local_path_file.delete();
|
||||||
return -9;
|
return -9;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -543,6 +543,7 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager
|
|||||||
System.err.println("Server::HTTPGetFile exception");
|
System.err.println("Server::HTTPGetFile exception");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
this.log.debug("Server::HTTPGetFile(" + url_ + ", ...) will failed (end of function)");
|
||||||
return -2;
|
return -2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user