openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r993621 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorHandler.java
Date Wed, 08 Sep 2010 06:10:18 GMT
Author: gerdogdu
Date: Wed Sep  8 06:10:18 2010
New Revision: 993621

URL: http://svn.apache.org/viewvc?rev=993621&view=rev
Log:
Check Log level before logging.

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorHandler.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorHandler.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorHandler.java?rev=993621&r1=993620&r2=993621&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorHandler.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/InterceptorHandler.java
Wed Sep  8 06:10:18 2010
@@ -187,8 +187,12 @@ public abstract class InterceptorHandler
             
             if(ClassUtil.isObjectMethod(methodName) && !methodName.equals("toString"))
             {
-                // we must not log in this place because this almost takes away half of the
performance! 
-                // logger.trace("Calling method on proxy is restricted except Object.toString(),
but current method is Object. [{0}]", methodName);
+                // we must not log in this place because this almost takes away half of the
performance!
+                //GE : Log on TRACE Level
+                if(logger.wblWillLogTrace())
+                {
+                    logger.trace("Calling method on proxy is restricted except Object.toString(),
but current method is Object. [{0}]", methodName);   
+                }
             }
             
             else if (bean instanceof InjectionTargetBean<?>)



Mime
View raw message