logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgo...@apache.org
Subject svn commit: r1509750 - /logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java
Date Fri, 02 Aug 2013 15:42:36 GMT
Author: rgoers
Date: Fri Aug  2 15:42:35 2013
New Revision: 1509750

URL: http://svn.apache.org/r1509750
Log:
LOG4J2-329 - Change the status level back to the default after the listener is removed

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

Modified: logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java?rev=1509750&r1=1509749&r2=1509750&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java
(original)
+++ logging/log4j/log4j2/trunk/api/src/main/java/org/apache/logging/log4j/status/StatusLogger.java
Fri Aug  2 15:42:35 2013
@@ -112,7 +112,7 @@ public final class StatusLogger extends 
         listenersLock.writeLock().lock();
         try {
             listeners.remove(listener);
-            int lowest = Level.ERROR.intLevel();
+            int lowest = Level.toLevel(DEFAULT_STATUS_LEVEL, Level.WARN).intLevel();
             for (StatusListener l : listeners) {
                 int level = l.getStatusLevel().intLevel();
                 if (lowest < level) {



Mime
View raw message