openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1074344 - /openwebbeans/branches/owb_1.0.x/webbeans-impl/src/main/java/org/apache/webbeans/logger/WebBeansLogger.java
Date Thu, 24 Feb 2011 23:06:03 GMT
Author: struberg
Date: Thu Feb 24 23:06:03 2011
New Revision: 1074344

URL: http://svn.apache.org/viewvc?rev=1074344&view=rev
Log:
only go 3 frames back and not 4 (possible IndexOORE)

Modified:
    openwebbeans/branches/owb_1.0.x/webbeans-impl/src/main/java/org/apache/webbeans/logger/WebBeansLogger.java

Modified: openwebbeans/branches/owb_1.0.x/webbeans-impl/src/main/java/org/apache/webbeans/logger/WebBeansLogger.java
URL: http://svn.apache.org/viewvc/openwebbeans/branches/owb_1.0.x/webbeans-impl/src/main/java/org/apache/webbeans/logger/WebBeansLogger.java?rev=1074344&r1=1074343&r2=1074344&view=diff
==============================================================================
--- openwebbeans/branches/owb_1.0.x/webbeans-impl/src/main/java/org/apache/webbeans/logger/WebBeansLogger.java
(original)
+++ openwebbeans/branches/owb_1.0.x/webbeans-impl/src/main/java/org/apache/webbeans/logger/WebBeansLogger.java
Thu Feb 24 23:06:03 2011
@@ -100,7 +100,7 @@ public final class WebBeansLogger
     {
         if (logger.isLoggable(level))
         {
-            logger.logp(level, this.caller.getName(), Thread.currentThread().getStackTrace()[4].getMethodName(),
messageKey);
+            logger.logp(level, this.caller.getName(), Thread.currentThread().getStackTrace()[3].getMethodName(),
messageKey);
         }
     }
 
@@ -108,7 +108,7 @@ public final class WebBeansLogger
     {
         if (logger.isLoggable(level))
         {
-            logger.logp(level, this.caller.getName(), Thread.currentThread().getStackTrace()[4].getMethodName(),
messageKey, args);
+            logger.logp(level, this.caller.getName(), Thread.currentThread().getStackTrace()[3].getMethodName(),
messageKey, args);
         }
     }
 
@@ -116,7 +116,7 @@ public final class WebBeansLogger
     {
         if (logger.isLoggable(level))
         {
-            logger.logp(level, this.caller.getName(), Thread.currentThread().getStackTrace()[4].getMethodName(),
messageKey, e);
+            logger.logp(level, this.caller.getName(), Thread.currentThread().getStackTrace()[3].getMethodName(),
messageKey, e);
         }
     }
 



Mime
View raw message