incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r610360 - /incubator/sling/trunk/launcher/app/src/main/java/org/apache/sling/launcher/app/main/Main.java
Date Wed, 09 Jan 2008 12:14:59 GMT
Author: fmeschbe
Date: Wed Jan  9 04:14:34 2008
New Revision: 610360

URL: http://svn.apache.org/viewvc?rev=610360&view=rev
Log:
Limit logging of the framework to ERROR to prevent warnings from
the framework class loader to fill the logs.

Modified:
    incubator/sling/trunk/launcher/app/src/main/java/org/apache/sling/launcher/app/main/Main.java

Modified: incubator/sling/trunk/launcher/app/src/main/java/org/apache/sling/launcher/app/main/Main.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/launcher/app/src/main/java/org/apache/sling/launcher/app/main/Main.java?rev=610360&r1=610359&r2=610360&view=diff
==============================================================================
--- incubator/sling/trunk/launcher/app/src/main/java/org/apache/sling/launcher/app/main/Main.java
(original)
+++ incubator/sling/trunk/launcher/app/src/main/java/org/apache/sling/launcher/app/main/Main.java
Wed Jan  9 04:14:34 2008
@@ -115,7 +115,10 @@
             commandLine.put(LOG_LEVEL_PROP, String.valueOf(logLevel));
         }
         Logger logger = new Logger();
-        logger.setLogLevel(logLevel);
+
+        // prevent tons of needless WARN messages from the framework
+        // logger.setLogLevel(logLevel);
+        logger.setLogLevel(Logger.LOG_ERROR);
 
         try {
             ResourceProvider resProvider = new ClassLoaderResourceProvider(



Mime
View raw message