logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpo...@apache.org
Subject svn commit: r1477706 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/async/AsyncLogger.java
Date Tue, 30 Apr 2013 16:01:44 GMT
Author: rpopma
Date: Tue Apr 30 16:01:44 2013
New Revision: 1477706

URL: http://svn.apache.org/r1477706
Log:
minor fix: no need to convert to Boolean object, use primitive boolean

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/async/AsyncLogger.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/async/AsyncLogger.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/async/AsyncLogger.java?rev=1477706&r1=1477705&r2=1477706&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/async/AsyncLogger.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/async/AsyncLogger.java
Tue Apr 30 16:01:44 2013
@@ -193,7 +193,7 @@ public class AsyncLogger extends Logger 
             threadlocalInfo.set(info);
         }
 
-        Boolean includeLocation = config.loggerConfig.isIncludeLocation();
+        boolean includeLocation = config.loggerConfig.isIncludeLocation();
         info.translator.setValues(this, getName(), marker, fqcn, level, data,
                 t, //
 
@@ -212,8 +212,7 @@ public class AsyncLogger extends Logger 
                 // location: very expensive operation. LOG4J2-153:
                 // Only include if "includeLocation=true" is specified,
                 // exclude if not specified or if "false" was specified.
-                includeLocation != null && includeLocation ? location(fqcn)
-                        : null,
+                includeLocation ? location(fqcn) : null,
 
                 // System.currentTimeMillis());
                 // CoarseCachedClock: 20% faster than system clock, 16ms gaps



Mime
View raw message