SteamWar/SpigotCore
Archiviert
13
0

Reducing exception spam

Dieser Commit ist enthalten in:
Lixfel 2020-03-22 07:52:15 +01:00
Ursprung 6f3e1ebc3c
Commit b0e2b9ee02

Datei anzeigen

@ -29,11 +29,19 @@ public class SWException {
String message = logEvent.getMessage().getFormattedMessage(); String message = logEvent.getMessage().getFormattedMessage();
if(message.startsWith("Block at") || message.startsWith("POI data mismatch")) if(message.startsWith("Block at") || message.startsWith("POI data mismatch"))
return; return;
else if(message.equals("The server has stopped responding!")){
if(message.equals("------------------------------")){ logDisabled = true;
return;
}else if(message.equals("------------------------------")){
message = "Server stopped responding"; message = "Server stopped responding";
logDisabled = true; logDisabled = true;
} }else if(message.equals("Exception stopping the server")){
logDisabled = true;
}else if(message.startsWith("This crash report has been saved to:") || message.startsWith("Could not pass event PlayerQuitEvent to WorldEditSUI")){
return;
}else if(message.startsWith("[ViaVersion] Failed to remove injection handler"))
return;
message += "\n\n"; message += "\n\n";