Merge branch 'doc/JAL-4090_Release_2_11_3_0' into develop
[jalview.git] / src / jalview / bin / Console.java
index c42d519..1b230ec 100644 (file)
@@ -337,8 +337,8 @@ public class Console
   {
     // send message to stderr if an output file to stdout is expected
     if (!forceStdout && Jalview.getInstance() != null
-            && Jalview.getInstance().bootstrapArgs != null
-            && Jalview.getInstance().bootstrapArgs.outputToStdout())
+            && Jalview.getInstance().getBootstrapArgs() != null
+            && Jalview.getInstance().getBootstrapArgs().outputToStdout())
     {
       return System.err;
     }
@@ -382,6 +382,16 @@ public class Console
     System.err.println(message);
   }
 
+  public static void debugPrintStackTrace(Throwable t)
+  {
+    if (!isDebugEnabled())
+    {
+      return;
+    }
+    // send message to stderr if output to stdout is expected
+    printStackTrace(t);
+  }
+
   public static void printStackTrace(Throwable t)
   {
     // send message to stderr if output to stdout is expected