logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1516690 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/PatternParser.java
Date Fri, 23 Aug 2013 04:02:49 GMT
Author: ggregory
Date: Fri Aug 23 04:02:48 2013
New Revision: 1516690

URL: http://svn.apache.org/r1516690
Log:
Rename lvar to match API name.

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/PatternParser.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/PatternParser.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/PatternParser.java?rev=1516690&r1=1516689&r2=1516690&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/PatternParser.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/pattern/PatternParser.java
Fri Aug 23 04:02:48 2013
@@ -149,13 +149,13 @@ public final class PatternParser {
         parse(pattern, converters, fields);
 
         final Iterator<FormattingInfo> fieldIter = fields.iterator();
-        boolean handlesExceptions = false;
+        boolean handlesThrowable = false;
 
         for (final PatternConverter converter : converters) {
             LogEventPatternConverter pc;
             if (converter instanceof LogEventPatternConverter) {
                 pc = (LogEventPatternConverter) converter;
-                handlesExceptions |= pc.handlesThrowable();
+                handlesThrowable |= pc.handlesThrowable();
             } else {
                 pc = new LiteralPatternConverter(config, "");
             }
@@ -168,7 +168,7 @@ public final class PatternParser {
             }
             list.add(new PatternFormatter(pc, field));
         }
-        if (alwaysWriteExceptions && !handlesExceptions) {
+        if (alwaysWriteExceptions && !handlesThrowable) {
             final LogEventPatternConverter pc = ExtendedThrowablePatternConverter.newInstance(null);
             list.add(new PatternFormatter(pc, FormattingInfo.getDefault()));
         }



Mime
View raw message