diff --git a/src/main/java/winstone/Launcher.java b/src/main/java/winstone/Launcher.java index 8cd54088..1e32174c 100644 --- a/src/main/java/winstone/Launcher.java +++ b/src/main/java/winstone/Launcher.java @@ -39,6 +39,7 @@ import java.util.logging.Handler; import java.util.logging.Level; import java.util.logging.LogRecord; +import org.eclipse.jetty.ee8.annotations.AnnotationParser; import org.eclipse.jetty.jmx.MBeanContainer; import org.eclipse.jetty.server.Connector; import org.eclipse.jetty.server.LowResourceMonitor; @@ -84,7 +85,7 @@ public class Launcher implements Runnable { * available protocol listeners. */ @SuppressFBWarnings( - value = "DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED", + value = {"DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED", "LG_LOST_LOGGER_DUE_TO_WEAK_REFERENCE"}, justification = "cf. https://github.com/spotbugs/spotbugs/issues/1515") public Launcher(Map args) throws IOException { boolean success = false; @@ -181,6 +182,10 @@ public Launcher(Map args) throws IOException { server.addBean(mbeanContainer); } + // JENKINS-73616: Turn down log level of annotation parser + java.util.logging.Logger logger = java.util.logging.Logger.getLogger(AnnotationParser.class.getName()); + logger.setLevel(Level.SEVERE); + try { server.start(); writePortToFileIfNeeded();