Don't show strack trace on stdout but instead log it
This commit is contained in:
@@ -492,8 +492,11 @@ public class Client {
|
||||
this.server.HTTPSendFile(this.server.getPage("error") + args, temp_file.getAbsolutePath());
|
||||
temp_file.delete();
|
||||
}
|
||||
catch (Exception e1) {
|
||||
e1.printStackTrace();
|
||||
catch (Exception e) {
|
||||
StringWriter sw = new StringWriter();
|
||||
PrintWriter pw = new PrintWriter(sw);
|
||||
e.printStackTrace(pw);
|
||||
this.log.debug("Client::sendError Exception " + e + " stacktrace: " + sw.toString());
|
||||
// no exception should be raised to actual launcher (applet or standalone)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user