Put stacktrace of unknown exception on log
This commit is contained in:
@@ -435,7 +435,9 @@ public class Server extends Thread implements HostnameVerifier, X509TrustManager
|
|||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
catch (Exception 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 {
|
finally {
|
||||||
if (connection != null) {
|
if (connection != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user