Commits

Anonymous committed 71692eb

added _log.isDebugEnabled() check before doing debug logging, to make test case happy

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@838e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits 0351d48

Comments (0)

Files changed (1)

src/java/com/opensymphony/xwork/interceptor/DefaultWorkflowInterceptor.java

 
         if (action instanceof Validateable) {
             Validateable validateable = (Validateable) action;
-            _log.debug("invoking validate() on action "+validateable);
+            if (_log.isDebugEnabled()) {
+            	_log.debug("invoking validate() on action "+validateable);
+            }
             validateable.validate();
         }
 
             ValidationAware validationAwareAction = (ValidationAware) action;
 
             if (validationAwareAction.hasErrors()) {
-            	_log.debug("errors on action "+validationAwareAction+", returning result name 'input'");
+            	if (_log.isDebugEnabled()) {
+            		_log.debug("errors on action "+validationAwareAction+", returning result name 'input'");
+            	}
                 return Action.INPUT;
             }
         }