You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rp...@apache.org on 2013/04/30 18:01:44 UTC
svn commit: r1477706 -
/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/async/AsyncLogger.java
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