openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r986675 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractOwbBean.java
Date Wed, 18 Aug 2010 13:52:01 GMT
Author: struberg
Date: Wed Aug 18 13:52:00 2010
New Revision: 986675

URL: http://svn.apache.org/viewvc?rev=986675&view=rev
Log:
only log debug if LOG_DEBUG is enabled

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractOwbBean.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractOwbBean.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractOwbBean.java?rev=986675&r1=986674&r2=986675&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractOwbBean.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractOwbBean.java
Wed Aug 18 13:52:00 2010
@@ -215,8 +215,11 @@ public abstract class AbstractOwbBean<T>
     public void destroy(T instance, CreationalContext<T> creationalContext)
     {
         try
-        {  
-            logger.debug("Destroying instance : [{0}]", this);
+        {
+            if (logger.wblWillLogDebug())
+            {
+                logger.debug("Destroying instance : [{0}]", this);
+            }
             
             InjectionTargetWrapper<T> wrapper = getManager().getInjectionTargetWrapper(this);
             if(wrapper != null)



Mime
View raw message