[gatein-issues] [JBoss JIRA] (GTNPORTAL-2697) Add isDebugEnabled check to ConsoleEventMonitorListener

Marek Posolda (JIRA) jira-events at lists.jboss.org
Mon Oct 29 11:37:02 EDT 2012


Marek Posolda created GTNPORTAL-2697:
----------------------------------------

             Summary: Add isDebugEnabled check to ConsoleEventMonitorListener
                 Key: GTNPORTAL-2697
                 URL: https://issues.jboss.org/browse/GTNPORTAL-2697
             Project: GateIn Portal
          Issue Type: Enhancement
      Security Level: Public (Everyone can see)
          Components: Performance
    Affects Versions: 3.5.0.Beta01
            Reporter: Marek Posolda
            Assignee: Marek Posolda
             Fix For: 3.5.0.Beta02


ConsoleEventMonitorListener is executed at the end of each HTTP request to GateIn portal. Actually this listener needs to create long debug message via StringBuilder and then it prints it via log.debug.

Thing is that debug logging is not enabled by default in AS7 and profiling shows that creating of debug message costs some CPU time. It would be good to add log.isDebugEnabled() check, so that StringBuilder is created and logged only if debug logging is really enabled.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the gatein-issues mailing list