From 7323db13c96755f5f6f49d38d28ac1dc9a16fe13 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sun, 22 Mar 2020 07:39:52 +0100 Subject: [PATCH] Reduce Error Message spam Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/ErrorLogger.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/ErrorLogger.java b/src/de/steamwar/bungeecore/ErrorLogger.java index 64ebcc1..d505d71 100644 --- a/src/de/steamwar/bungeecore/ErrorLogger.java +++ b/src/de/steamwar/bungeecore/ErrorLogger.java @@ -67,7 +67,12 @@ public class ErrorLogger extends Handler implements Filter { } String stacktraceString = stacktrace.toString(); - SWException.log("Bungee", MessageFormat.format(record.getMessage(), record.getParameters()), stacktraceString); + String message = MessageFormat.format(record.getMessage(), record.getParameters()); + + if(message.contains("ServerConnector") || message.contains("InitialHandler") || message.contains("DownstreamBridge")) + return; + + SWException.log("Bungee", message, stacktraceString); } @Override