logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgo...@apache.org
Subject svn commit: r1585367 - in /logging/log4j/log4j2/trunk: log4j-api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java src/changes/changes.xml
Date Mon, 07 Apr 2014 00:37:06 GMT
Author: rgoers
Date: Mon Apr  7 00:37:06 2014
New Revision: 1585367

URL: http://svn.apache.org/r1585367
Log:
LOG4J2-597 - StatusLogger was not skipping multiple instances of the FQCN class, causing messages
from classes in the Verbose list to be printed

Modified:
    logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java
    logging/log4j/log4j2/trunk/src/changes/changes.xml

Modified: logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java?rev=1585367&r1=1585366&r2=1585367&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java
Mon Apr  7 00:37:06 2014
@@ -207,10 +207,10 @@ public final class StatusLogger extends 
         }
         boolean next = false;
         for (final StackTraceElement element : stackTrace) {
-            if (next) {
+            final String className = element.getClassName();
+            if (next && !fqcn.equals(className)) {
                 return element;
             }
-            final String className = element.getClassName();
             if (fqcn.equals(className)) {
                 next = true;
             } else if (NOT_AVAIL.equals(className)) {

Modified: logging/log4j/log4j2/trunk/src/changes/changes.xml
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/src/changes/changes.xml?rev=1585367&r1=1585366&r2=1585367&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/src/changes/changes.xml (original)
+++ logging/log4j/log4j2/trunk/src/changes/changes.xml Mon Apr  7 00:37:06 2014
@@ -21,6 +21,10 @@
   </properties>
   <body>
     <release version="2.0-rc2" date="2014-MM-DD" description="Bug fixes and enhancements">
+      <action issue="LOG4J2-597" dev="rgoers" type="fix">
+        StatusLogger was not skipping multiple instances of the FQCN class, causing messages
from classes in
+        the Verbose list to be printed.
+      </action>
       <action issue="LOG4J2-585" dev="rgoers" type="update">
         Add support for multiple parents to Markers.
       </action>



Mime
View raw message