#1959: Leave ping exception logging to plugins

This commit is contained in:
md_5 2018-03-31 10:55:15 +11:00
parent 272258cf5a
commit e690a7b389

View File

@ -121,6 +121,10 @@ public class HandlerBoss extends ChannelInboundHandlerAdapter
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception
{
if ( ctx.channel().isActive() )
{
boolean logExceptions = !( handler instanceof PingHandler );
if ( logExceptions )
{
if ( cause instanceof ReadTimeoutException )
{
@ -147,6 +151,7 @@ public class HandlerBoss extends ChannelInboundHandlerAdapter
{
ProxyServer.getInstance().getLogger().log( Level.SEVERE, handler + " - encountered exception", cause );
}
}
if ( handler != null )
{