Put stacktrace of unknown exception on log

This commit is contained in:
Laurent Clouet
2015-06-10 19:24:42 +01:00
parent b3cd22346a
commit 2e6f2311db

View File

@@ -435,7 +435,9 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager
throw e;
}
catch (Exception e) {
throw new FermeException("error requestJob: unknow exception " + e);
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
throw new FermeException("error requestJob: unknow exception " + e + " stacktrace: " + sw.toString());
}
finally {
if (connection != null) {