JAL-3671 hardwire log4j.root logger to INFO to supress jetty and httpclient log output
authorJim Procter <jprocter@issues.jalview.org>
Fri, 26 Jun 2020 16:12:31 +0000 (17:12 +0100)
committerJim Procter <j.procter@dundee.ac.uk>
Thu, 22 Jul 2021 23:58:16 +0000 (00:58 +0100)
src/jalview/bin/Cache.java

index 09004f4..3208a36 100755 (executable)
@@ -328,6 +328,9 @@ public class Cache implements ApplicationSingletonI
       // lcastor = Logger.getLogger("org.exolab.castor.xml.Marshaller");
       // lcastor.setLevel(Level.toLevel(Cache.getDefault("logs.Castor.Level",
       // Level.INFO.toString())));
+      // we shouldn't need to do this
+      org.apache.log4j.Logger.getRootLogger().setLevel(org.apache.log4j.Level.INFO); 
+
       jalview.bin.Cache.log.setLevel(Level.toLevel(Cache
               .getDefault("logs.Jalview.level", Level.INFO.toString())));
       // laxis.addAppender(ap);