From 8bcbf5c32f8091f2d5871e7eec4d4727c26d5c63 Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Thu, 10 Aug 2023 10:50:14 +0100 Subject: [PATCH] JAL-629 Method to use for printStackTrace --- src/jalview/bin/Console.java | 6 ++++++ 1 file changed, 6 insertions(+) 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"; } -- 1.7.10.2