Details
-
Improvement
-
Status: Patch Available
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
I noticed that in Mapreduced code, there are many places to use Log.debug as follows:
LOG.debug("example " + example.getClass().getName() + "example" );
When the system loglevel set higher than Debug, although the system does not print these levels of logs, but each time will splicing parameters string, affect system performance.
It should be:
if(LOG.isDebugEnabled()){ LOG.debug("example " + example.getClass().getName() + "example" ); }