print full stack trace if debug logging is enabled

This commit is contained in:
Reinhard Pointner 2018-03-09 14:55:04 +07:00
parent b51cb13b4d
commit 5f641dc1a6
1 changed files with 3 additions and 0 deletions

View File

@ -155,6 +155,9 @@ public abstract class ScriptShellBaseClass extends Script {
} else { } else {
log.log(Level.WARNING, cause(t)); log.log(Level.WARNING, cause(t));
} }
// print full stack trace if debug logging is enabled
debug.log(Level.ALL, "Suppressed Exception: " + t, t);
} }
public void die(Object cause) throws Throwable { public void die(Object cause) throws Throwable {