From df3aabf51897bdf64038afd14695351b805cc477 Mon Sep 17 00:00:00 2001 From: UnfamiliarLegacy <74633542+UnfamiliarLegacy@users.noreply.github.com> Date: Wed, 7 Jun 2023 19:19:50 +0200 Subject: [PATCH] Add log message for packet discard --- .../gearth/protocol/packethandler/nitro/NitroPacketHandler.java | 1 + 1 file changed, 1 insertion(+) diff --git a/G-Earth/src/main/java/gearth/protocol/packethandler/nitro/NitroPacketHandler.java b/G-Earth/src/main/java/gearth/protocol/packethandler/nitro/NitroPacketHandler.java index fc72f34..853127b 100644 --- a/G-Earth/src/main/java/gearth/protocol/packethandler/nitro/NitroPacketHandler.java +++ b/G-Earth/src/main/java/gearth/protocol/packethandler/nitro/NitroPacketHandler.java @@ -35,6 +35,7 @@ public class NitroPacketHandler extends PacketHandler { final Session localSession = session.getSession(); if (localSession == null) { + logger.warn("Discarding {} bytes because the session for direction {} was null", buffer.length, this.direction); return false; }