[jboss-jira] [JBoss JIRA] Created: (JBPM-756) log.debug calls are unprotected

Dave Caruana (JIRA) jira-events at jboss.com
Tue Sep 26 08:40:01 EDT 2006


log.debug calls are unprotected
-------------------------------

                 Key: JBPM-756
                 URL: http://jira.jboss.com/jira/browse/JBPM-756
             Project: JBoss jBPM
          Issue Type: Bug
          Components: Core Engine
    Affects Versions:  jBPM 3.1.2
         Environment: Window XP, Java 5
            Reporter: Dave Caruana
         Assigned To: Tom Baeyens


Within org.jbpm.context.exe.VariableContainer there are calls to log.debug.  In particular:

line 156:      log.debug("create variable '"+name+"' in '"+this+"' with value '"+value+"'");

line 160:      log.debug("update variable '"+name+"' in '"+this+"' to value '"+value+"'");

However, they are unprotected i.e. the method is called even if debug logging is not switched on.  This is not too much of a problem if the variable value is of a primitive type, but sometimes, values can be complex (including their toString()).

"if (log.isDebugEnabled())" statements are missing.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list