Skip to content
Snippets Groups Projects
Commit e7e866cf authored by p.mocko's avatar p.mocko Committed by al.schwinn
Browse files

Fix console stacktrace output (#35)

parent dbff4575
No related branches found
No related tags found
No related merge requests found
......@@ -75,8 +75,12 @@ public class ConsoleHandler {
public static void printStackTrace(Exception ex) {
errorStream.println(ex.getLocalizedMessage());
errorStream.println("Stacktrace: ");
errorStream.println(ex.getStackTrace().toString());
StackTraceElement[] trace = ex.getStackTrace();
for (StackTraceElement element : trace) {
errorStream.println(element.toString());
}
errorStream.setActivateOnWrite(true);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment