Make exceptions thrown by QueryHandler nicer. (#1741)
Previously, they would result in a large and scary message from Netty. This instead sends the message to the BungeeCord logger and de-establishes the connection.
This commit is contained in:
parent
987f2d0eb2
commit
ee256d0a8d
@ -141,4 +141,10 @@ public class QueryHandler extends SimpleChannelInboundHandler<DatagramPacket>
|
||||
|
||||
ctx.writeAndFlush( response );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception
|
||||
{
|
||||
bungee.getLogger().log( Level.WARNING, "Error whilst handling query packet from " + ctx.channel().remoteAddress(), cause );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user