[
https://issues.jboss.org/browse/GTNPORTAL-2697?page=com.atlassian.jira.pl...
]
Marek Posolda updated GTNPORTAL-2697:
-------------------------------------
Summary: Add log.isDebugEnabled check to ConsoleEventMonitorListener (was: Add
isDebugEnabled check to ConsoleEventMonitorListener)
Add log.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