Remove the debug code as the source for random-logouts is found

This commit is contained in:
games647
2016-06-28 16:09:32 +02:00
parent 469e8d3a48
commit 837bbd69ac
3 changed files with 0 additions and 19 deletions
@@ -11,7 +11,6 @@ import java.io.IOException;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
@@ -67,19 +66,6 @@ public final class ConsoleLogger {
}
public static void debug(String message) {
if (enableDebug) {
//creating and filling an exception is a expensive call
//TODO #419 20160601: ->so it should be removed as soon #419 is fixed
//logger.isLoggable does not work because the plugin logger is always ALL
logger.log(Level.FINE, message + ' ' + Thread.currentThread().getName(), new Exception());
if (useLogging) {
writeLog("Debug: " + Thread.currentThread().getName() + ':' + message);
}
}
}
/**
* Print an error message.
*