[logback-dev] svn commit: r1973 - logback/trunk/logback-core/src/main/java/ch/qos/logback/core

noreply.ceki at qos.ch noreply.ceki at qos.ch
Mon Nov 17 14:15:11 CET 2008


Author: ceki
Date: Mon Nov 17 14:15:11 2008
New Revision: 1973

Modified:
   logback/trunk/logback-core/src/main/java/ch/qos/logback/core/BasicStatusManager.java

Log:
LBCORE-72 fire status add event before the count check 

Modified: logback/trunk/logback-core/src/main/java/ch/qos/logback/core/BasicStatusManager.java
==============================================================================
--- logback/trunk/logback-core/src/main/java/ch/qos/logback/core/BasicStatusManager.java	(original)
+++ logback/trunk/logback-core/src/main/java/ch/qos/logback/core/BasicStatusManager.java	Mon Nov 17 14:15:11 2008
@@ -46,6 +46,9 @@
    *                the status message to add
    */
   public void add(Status newStatus) {
+    // LBCORE-72: fire event before the count check 
+    fireStatusAddEvent(newStatus);
+    
     if (count > MAX_COUNT) {
       return;
     }
@@ -55,7 +58,7 @@
       level = newStatus.getLevel();
     }
     statusList.add(newStatus);
-    fireStatusAddEvent(newStatus);
+
   }
 
   private void fireStatusAddEvent(Status status) {


More information about the logback-dev mailing list