You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mm...@apache.org on 2007/12/03 19:55:07 UTC

svn commit: r600632 - /myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/el/PropertyResolverImpl.java

Author: mmarinschek
Date: Mon Dec  3 10:55:04 2007
New Revision: 600632

URL: http://svn.apache.org/viewvc?rev=600632&view=rev
Log:
trivial: added isDebugEnabled

Modified:
    myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/el/PropertyResolverImpl.java

Modified: myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/el/PropertyResolverImpl.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/el/PropertyResolverImpl.java?rev=600632&r1=600631&r2=600632&view=diff
==============================================================================
--- myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/el/PropertyResolverImpl.java (original)
+++ myfaces/core/trunk/impl/src/main/java/org/apache/myfaces/el/PropertyResolverImpl.java Mon Dec  3 10:55:04 2007
@@ -109,7 +109,8 @@
         {
             if (base == null)
             {
-                log.debug("index : "+index+" not retrievable cause base is null.");
+                if(log.isDebugEnabled())
+                    log.debug("index : "+index+" not retrievable cause base is null.");
                 return null;
             }
 
@@ -410,7 +411,8 @@
         }
         catch (Throwable t)
         {
-            log.debug("Exception while invoking setter method.",t);
+            if(log.isDebugEnabled())
+                log.debug("Exception while invoking setter method.",t);
             throw new EvaluationException(getMessage(base, name, newValue, m), t);
         }
     }