Skip to content

Commit 6f6ed87

Browse files
committed
Hide LVT renaming spam behind mci.printLVTRenames system property.
1 parent a2f7213 commit 6f6ed87

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/de/oceanlabs/mcp/mcinjector/adaptors/LVTRenamer.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
public abstract class LVTRenamer extends ClassVisitor
1616
{
17+
private static final boolean DEBUG = Boolean.parseBoolean(System.getProperty("mci.printLVTRenames", "false"));
1718
private static final Logger log = Logger.getLogger("MCInjector");
1819
private MCInjectorImpl mci;
1920
String className;
@@ -90,7 +91,8 @@ public int compare(LocalVariableNode o1, LocalVariableNode o2)
9091
}
9192
name += suffix + "_";
9293
}
93-
log.info(" Renaming LVT: " + lvn.index + " " + lvn.name + " " + lvn.desc + " -> " + name);
94+
if (DEBUG)
95+
log.info(" Renaming LVT: " + lvn.index + " " + lvn.name + " " + lvn.desc + " -> " + name);
9496
lvn.name = name;
9597
}
9698
}

0 commit comments

Comments
 (0)