From: Ben Soares Date: Thu, 27 Jun 2024 21:14:58 +0000 (+0100) Subject: JAL-3631 Add property to let log4j know we're not running in a servlet (or it issues... X-Git-Tag: Release_2_11_4_0~24^2~13 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c71422b81d7741434287b8645bc42abc7a8c59d1;p=jalview.git JAL-3631 Add property to let log4j know we're not running in a servlet (or it issues a warning which breaks cli headless output) --- diff --git a/src/jalview/bin/Jalview.java b/src/jalview/bin/Jalview.java index 6b88cfa..0e3b30a 100755 --- a/src/jalview/bin/Jalview.java +++ b/src/jalview/bin/Jalview.java @@ -322,6 +322,8 @@ public class Jalview implements JalviewObjectI boolean usingLogfile = false; if (!Platform.isJS()) { + // required to ensure log4j doesn't think it's running in a servlet + System.setProperty("log4j2.isWebapp", "false"); // are we using a logfile? String logfilename = System.getProperty("installer.logfile");