Merge branch 'feature/JAL-629_--output_-_means_output_to_STDOUT' into merge/big_merge...
[jalview.git] / src / jalview / bin / Console.java
index c42d519..20926cd 100644 (file)
@@ -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