Skip to content

Commit

Permalink
do NOT record debug logs if it is not enabled in config
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterboerner committed Dec 8, 2013
1 parent 229e59e commit f026f77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/debughandler/LogHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public LogHandler(String nameSet) {

@SuppressWarnings("ResultOfMethodCallIgnored")
public void debugPrint(String str) {
if (!Config.debug.getBoolean(false)) return;
try {
File file = new File("DebugHandler/");
file.mkdirs();
Expand Down

0 comments on commit f026f77

Please sign in to comment.