From bc61f762335cfa3a610279bba0b6d98091a232bc Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sun, 9 Nov 2025 01:52:11 -0500 Subject: [PATCH] feat: enhance logging for unknown domain packet types with payload details --- src/OverteClient.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/OverteClient.cpp b/src/OverteClient.cpp index c464485..640aeca 100644 --- a/src/OverteClient.cpp +++ b/src/OverteClient.cpp @@ -439,7 +439,17 @@ void OverteClient::parseDomainPacket(const char* data, size_t len) { break; default: - std::cout << "[OverteClient] Unknown domain packet type: " << static_cast(packetType) << std::endl; + // Log all unknown packet types to see what we're missing + std::cout << "[OverteClient] Unknown/unhandled packet type: " << static_cast(packetType) + << " (0x" << std::hex << static_cast(packetType) << std::dec << ")" + << " payload=" << payloadLen << " bytes" << std::endl; + if (payloadLen > 0 && payloadLen <= 64) { + std::cout << "[OverteClient] Payload hex: "; + for (size_t i = 0; i < payloadLen; i++) { + printf("%02x ", (unsigned char)payload[i]); + } + std::cout << std::endl; + } break; } }