logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1405284 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/DefaultConfiguration.java
Date Sat, 03 Nov 2012 06:06:53 GMT
Author: ggregory
Date: Sat Nov  3 06:06:52 2012
New Revision: 1405284

URL: http://svn.apache.org/viewvc?rev=1405284&view=rev
Log:
Rename lvar "l" to "levelName" and remove extra ()'s.

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/DefaultConfiguration.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/DefaultConfiguration.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/DefaultConfiguration.java?rev=1405284&r1=1405283&r2=1405284&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/DefaultConfiguration.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/DefaultConfiguration.java
Sat Nov  3 06:06:52 2012
@@ -52,8 +52,8 @@ public class DefaultConfiguration extend
         LoggerConfig root = getRootLogger();
         root.addAppender(appender, null, null);
 
-        String l = System.getProperty(DEFAULT_LEVEL);
-        Level level = (l != null && Level.valueOf(l) != null) ? Level.valueOf(l)
: Level.ERROR;
+        String levelName = System.getProperty(DEFAULT_LEVEL);
+        Level level = levelName != null && Level.valueOf(levelName) != null ? Level.valueOf(levelName)
: Level.ERROR;
         root.setLevel(level);
     }
 }



Mime
View raw message