Print entire buffer in log

This commit is contained in:
s809
2024-08-28 16:19:17 +05:00
parent 691e1022e3
commit 34b0b7dc31
@@ -49,6 +49,8 @@ public abstract class AbstractPluginPacketSender implements IPluginPacketSender
try
{
in.markReaderIndex();
int protocolVersion = in.readShort();
if (protocolVersion != ModInfo.PROTOCOL_VERSION)
{
@@ -67,6 +69,8 @@ public abstract class AbstractPluginPacketSender implements IPluginPacketSender
}
catch (Exception e)
{
in.resetReaderIndex();
LOGGER.error("Failed to decode message", e);
LOGGER.error("Buffer: {}", in);
LOGGER.error("Buffer contents: [{}]", ByteBufUtil.hexDump(in));