Added remote address of the channel for the ChannelHandlerContext to the exception message in InboundChannelHandler

This commit is contained in:
Collin Smith 2020-07-02 18:39:28 -07:00
parent fc6d8b0039
commit 2216b29325

View File

@ -61,7 +61,7 @@ public class InboundChannelHandler<T> implements ChannelInboundHandler {
@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
if (DEBUG_CALLS) Gdx.app.debug(TAG, "exceptionCaught");
Gdx.app.error(TAG, cause.getMessage(), cause);
Gdx.app.error(TAG, ctx.channel().remoteAddress() + " " + cause.getMessage(), cause);
ctx.close();
}