SteamWar/SpigotCore
Archiviert
13
0

Remove logging of Block at XXX should be XXX messages

Dieser Commit ist enthalten in:
Lixfel 2020-01-19 16:25:15 +01:00
Ursprung 5c176b0afb
Commit f6f2c7ce9a

Datei anzeigen

@ -20,6 +20,10 @@ public class SWException {
throwable = throwable.getCause(); throwable = throwable.getCause();
} }
SQL.update("INSERT INTO Exception (server, message, stacktrace) VALUES ('" + server + "', '" + SQL.disarmString(logEvent.getMessage().getFormattedMessage()) + "', '" + SQL.disarmString(stacktrace.toString()) + "')"); String message = logEvent.getMessage().getFormattedMessage();
if(message.startsWith("Block at"))
return;
SQL.update("INSERT INTO Exception (server, message, stacktrace) VALUES ('" + server + "', '" + SQL.disarmString(message) + "', '" + SQL.disarmString(stacktrace.toString()) + "')");
} }
} }