Add debug statements for finding the source of #419
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user