[LOGBack-dev] svn commit: r382 - logback/classic/trunk/src/main/java/ch/qos/logback/classic/spi

noreply.ceki at qos.ch noreply.ceki at qos.ch
Fri Jul 28 18:59:15 CEST 2006


Author: ceki
Date: Fri Jul 28 18:59:14 2006
New Revision: 382

Modified:
   logback/classic/trunk/src/main/java/ch/qos/logback/classic/spi/CallerData.java
Log:
the client is assumed to be the first STE beyong the caller class.

Modified: logback/classic/trunk/src/main/java/ch/qos/logback/classic/spi/CallerData.java
==============================================================================
--- logback/classic/trunk/src/main/java/ch/qos/logback/classic/spi/CallerData.java	(original)
+++ logback/classic/trunk/src/main/java/ch/qos/logback/classic/spi/CallerData.java	Fri Jul 28 18:59:14 2006
@@ -88,8 +88,12 @@
       if(steArray[i].getClassName().equals(fqnOfInvokingClass)) {
         // the caller is assumed to be the next stack frame, hence the +1.
         found = i + 1;
-        break;
+      } else {
+        if(found != -1) {
+          break;
+        }
       }
+      
     }
 
     callerDataArray = new CallerData[steArray.length - found];



More information about the logback-dev mailing list