From f026f773506855f76fa7a3bffc103c554dddf9d1 Mon Sep 17 00:00:00 2001 From: hunterboerner Date: Sat, 7 Dec 2013 21:46:06 -0600 Subject: [PATCH] do NOT record debug logs if it is not enabled in config --- src/main/java/debughandler/LogHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/debughandler/LogHandler.java b/src/main/java/debughandler/LogHandler.java index 07730c1..0ee63e4 100644 --- a/src/main/java/debughandler/LogHandler.java +++ b/src/main/java/debughandler/LogHandler.java @@ -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();