From 2e51ec4fbaa2bef0854e61ca6a21380bbdb58e93 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 16 Mar 2013 21:09:16 +1100 Subject: [PATCH] *add else statement to prevent duplicate exception logging --- proxy/src/main/java/net/md_5/bungee/netty/HandlerBoss.java | 3 +-- 1 file changed, 1 insertion(+), 2 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 8d8b114f..df8b7985 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 @@ -79,8 +79,7 @@ public class HandlerBoss extends ChannelInboundMessageHandlerAdapter if ( cause instanceof ReadTimeoutException ) { ProxyServer.getInstance().getLogger().log( Level.WARNING, handler + " - read timed out" ); - } - if ( cause instanceof IOException ) + } else if ( cause instanceof IOException ) { ProxyServer.getInstance().getLogger().log( Level.WARNING, handler + " - IOException: " + cause.getMessage() ); } else