#1544: Reduce verbosity of common/harmless exception during initial connection

This commit is contained in:
md_5 2016-08-21 09:07:33 +10:00
parent b86a33d058
commit 356ca08337

View File

@ -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
{