From d74d85c174b1f90fae713b62c6c9824fa423f7c2 Mon Sep 17 00:00:00 2001 From: Laurent Clouet Date: Thu, 30 Apr 2015 20:51:04 +0100 Subject: [PATCH] Better log in case of error --- src/com/sheepit/client/Client.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/com/sheepit/client/Client.java b/src/com/sheepit/client/Client.java index 46990f8..72db4e3 100644 --- a/src/com/sheepit/client/Client.java +++ b/src/com/sheepit/client/Client.java @@ -295,6 +295,10 @@ public class Client { } catch (Exception e1) { // no exception should be raised in the actual launcher (applet or standalone) + StringWriter sw = new StringWriter(); + PrintWriter pw = new PrintWriter(sw); + e1.printStackTrace(pw); + this.log.debug("Client::run exception(D) " + e1 + " stacktrace: " + sw.toString()); return -99; // the this.stop will be done after the return of this.run() }