From: markt Date: Tue, 15 Sep 2009 10:38:23 +0000 (+0000) Subject: Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47828 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=92eb9c1308b7c9ae8fa25ffaae77b70e7cae1fc9;p=tomcat7.0 Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47828 Change Tomcat.setSilent() to setSilent(boolean) so it can be turned on and off git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@815264 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/startup/Tomcat.java b/java/org/apache/catalina/startup/Tomcat.java index fcd0130f0..14ba59dae 100644 --- a/java/org/apache/catalina/startup/Tomcat.java +++ b/java/org/apache/catalina/startup/Tomcat.java @@ -543,13 +543,20 @@ public class Tomcat { }; /** - * Sets the log level to WARN for the loggers that log information on - * Tomcat start up. This prevents the usual startup information being - * logged to the console. + * Controls if the loggers will be silenced or not. + * @param silent true sets the log level to WARN for the + * loggers that log information on Tomcat start up. This + * prevents the usual startup information being logged. + * false sets the log level to the default + * level of INFO. */ - public void setSilent() { + public void setSilent(boolean silent) { for (String s : silences) { - Logger.getLogger(s).setLevel(Level.WARNING); + if (silent) { + Logger.getLogger(s).setLevel(Level.WARNING); + } else { + Logger.getLogger(s).setLevel(Level.INFO); + } } }