From 5f641dc1a6e411529d752b4210e4ec4b404ebf5a Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 9 Mar 2018 14:55:04 +0700 Subject: [PATCH] print full stack trace if debug logging is enabled --- source/net/filebot/cli/ScriptShellBaseClass.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/net/filebot/cli/ScriptShellBaseClass.java b/source/net/filebot/cli/ScriptShellBaseClass.java index 4cdd4e96..bbf01c92 100644 --- a/source/net/filebot/cli/ScriptShellBaseClass.java +++ b/source/net/filebot/cli/ScriptShellBaseClass.java @@ -155,6 +155,9 @@ public abstract class ScriptShellBaseClass extends Script { } else { 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 {