From 356ca083375509ee3e40301405cc2643b37a3230 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 21 Aug 2016 09:07:33 +1000 Subject: [PATCH] #1544: Reduce verbosity of common/harmless exception during initial connection --- proxy/src/main/java/net/md_5/bungee/netty/HandlerBoss.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/proxy/src/main/java/net/md_5/bungee/netty/HandlerBoss.java b/proxy/src/main/java/net/md_5/bungee/netty/HandlerBoss.java index 94a164e3..7a49d21f 100644 --- a/proxy/src/main/java/net/md_5/bungee/netty/HandlerBoss.java +++ b/proxy/src/main/java/net/md_5/bungee/netty/HandlerBoss.java @@ -111,11 +111,11 @@ public class HandlerBoss extends ChannelInboundHandlerAdapter { handler, cause.getCause().getMessage() } ); - } else if ( cause instanceof IOException ) + } else if ( cause instanceof IOException || ( cause instanceof IllegalStateException && handler instanceof InitialHandler ) ) { - ProxyServer.getInstance().getLogger().log( Level.WARNING, "{0} - IOException: {1}", new Object[] + ProxyServer.getInstance().getLogger().log( Level.WARNING, "{0} - {1}: {2}", new Object[] { - handler, cause.getMessage() + handler, cause.getClass().getSimpleName(), cause.getMessage() } ); } else {