From 2216b29325ed373a00bcac83fdc74bf83ae915c4 Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Thu, 2 Jul 2020 18:39:28 -0700 Subject: [PATCH] Added remote address of the channel for the ChannelHandlerContext to the exception message in InboundChannelHandler --- server/netty/src/com/riiablo/net/InboundChannelHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/netty/src/com/riiablo/net/InboundChannelHandler.java b/server/netty/src/com/riiablo/net/InboundChannelHandler.java index b85fd013..e0868f1f 100644 --- a/server/netty/src/com/riiablo/net/InboundChannelHandler.java +++ b/server/netty/src/com/riiablo/net/InboundChannelHandler.java @@ -61,7 +61,7 @@ public class InboundChannelHandler 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(); }