From: Ben Soares Date: Thu, 10 Aug 2023 09:50:14 +0000 (+0100) Subject: JAL-629 Method to use for printStackTrace X-Git-Tag: Release_2_11_4_0~198^2~5 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=8bcbf5c32f8091f2d5871e7eec4d4727c26d5c63;p=jalview.git JAL-629 Method to use for printStackTrace --- diff --git a/src/jalview/bin/Console.java b/src/jalview/bin/Console.java index 7ac793d..a280e88 100644 --- a/src/jalview/bin/Console.java +++ b/src/jalview/bin/Console.java @@ -321,6 +321,12 @@ public class Console } } + public static void printStackTrace(Exception e) + { + // send message to stderr if output to stdout is expected + e.printStackTrace(System.err); + } + public final static String LOGGING_TEST_MESSAGE = "Logging to STDERR"; }