Add debug statements for finding the source of #419

This commit is contained in:
games647
2016-05-11 16:55:22 +02:00
parent 3f5154e3c7
commit 4bad04b160
3 changed files with 17 additions and 0 deletions
@@ -1,6 +1,7 @@
package fr.xephi.authme;
import com.google.common.base.Throwables;
import fr.xephi.authme.settings.properties.SecuritySettings;
import fr.xephi.authme.util.StringUtils;
import java.io.File;
@@ -48,6 +49,15 @@ public final class ConsoleLogger {
}
}
public static void debug(String message) {
if (!AuthMe.getInstance().getSettings().getProperty(SecuritySettings.REMOVE_SPAM_FROM_CONSOLE)) {
logger.fine(message);
if (useLogging) {
writeLog("Debug: " + message);
}
}
}
/**
* Print an error message.
*