logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1418170 - /logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/simple/SimpleLoggerContext.java
Date Fri, 07 Dec 2012 02:23:16 GMT
Author: ggregory
Date: Fri Dec  7 02:23:16 2012
New Revision: 1418170

URL: http://svn.apache.org/viewvc?rev=1418170&view=rev
Log:
Remove extra code that is not needed.

Modified:
    logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/simple/SimpleLoggerContext.java

Modified: logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/simple/SimpleLoggerContext.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/simple/SimpleLoggerContext.java?rev=1418170&r1=1418169&r2=1418170&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/simple/SimpleLoggerContext.java
(original)
+++ logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/simple/SimpleLoggerContext.java
Fri Dec  7 02:23:16 2012
@@ -99,9 +99,8 @@ public class SimpleLoggerContext impleme
             return loggers.get(name);
         }
 
-        loggers.putIfAbsent(name, new SimpleLogger(name, defaultLevel, showLogName, showShortName,
showDateTime,
+        return loggers.putIfAbsent(name, new SimpleLogger(name, defaultLevel, showLogName,
showShortName, showDateTime,
             showContextMap, dateTimeFormat, props, stream));
-        return loggers.get(name);
     }
 
     public boolean hasLogger(String name) {



Mime
View raw message