Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
I am conducting research on log related bugs. I tried to make a tool to fix repetitive yet simple patterns of bugs that are related to logs. In these files, there are debug level logging statements containing multiple string concatenation without the if statement before them:
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/ipc/HadoopYarnProtoRPC.java, LOG.debug("Creating a HadoopYarnProtoRpc server for protocol " + protocol +" with " + numHandlers + " handlers");, 61
Would you be interested in adding the if before these logging statements?
There are 15 more cases that I can mention if needed.