Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.22.0
-
None
-
None
-
Reviewed
Description
Each LOG.debug("...") should be executed only if LOG.isDebugEnabled() is true, in some cases it's expensive to construct the string that is being printed to log. It's much easier to always use LOG.isDebugEnabled() because it's easier to check (rather than in each case reason wheather it's neccessary or not).
Attachments
Attachments
Issue Links
- is related to
-
HADOOP-6884 Add LOG.isDebugEnabled() guard for each LOG.debug("...")
- Closed