JAL-3631 Add property to let log4j know we're not running in a servlet (or it issues...
authorBen Soares <b.soares@dundee.ac.uk>
Thu, 27 Jun 2024 21:14:58 +0000 (22:14 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Thu, 27 Jun 2024 21:14:58 +0000 (22:14 +0100)
src/jalview/bin/Jalview.java

index 6b88cfa..0e3b30a 100755 (executable)
@@ -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");