{
// 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;
}
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