From 082dbcde8185074a751495499080292085aadef8 Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Wed, 1 Jul 2026 16:41:40 -0400 Subject: [PATCH] make oversized packet warning verbose; --- src/common/network/FrameQueue.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/network/FrameQueue.cpp b/src/common/network/FrameQueue.cpp index e3daf143..3fed5180 100644 --- a/src/common/network/FrameQueue.cpp +++ b/src/common/network/FrameQueue.cpp @@ -157,8 +157,8 @@ bool FrameQueue::write(const uint8_t* message, uint32_t length, uint32_t streamI // bryanb: this is really a developer warning not a end-user warning, there's nothing the end-users can do about // this message if (bufferLen > (DATA_PACKET_LENGTH - OVERSIZED_PACKET_WARN)) { - LogWarning(LOG_NET, "FrameQueue::enqueueMessage(), WARN: packet length is possibly oversized, possible data truncation - BUGBUG, address = %s, port = %u", - udp::Socket::address(addr).c_str(), udp::Socket::port(addr)); + LogWarning(LOG_NET, "FrameQueue::enqueueMessage(), WARN: packet length is possibly oversized, possible data truncation - BUGBUG, func = $%02X, subfunc = $%02X, peerId = %u, address = %s, port = %u", + opcode.first, opcode.second, peerId, udp::Socket::address(addr).c_str(), udp::Socket::port(addr)); } bool ret = true; @@ -203,8 +203,8 @@ void FrameQueue::enqueueMessage(udp::BufferQueue* queue, const uint8_t* message, // bryanb: this is really a developer warning not a end-user warning, there's nothing the end-users can do about // this message if (bufferLen > (DATA_PACKET_LENGTH - OVERSIZED_PACKET_WARN)) { - LogWarning(LOG_NET, "FrameQueue::enqueueMessage(), WARN: packet length is possibly oversized, possible data truncation - BUGBUG, address = %s, port = %u", - udp::Socket::address(addr).c_str(), udp::Socket::port(addr)); + LogWarning(LOG_NET, "FrameQueue::enqueueMessage(), WARN: packet length is possibly oversized, possible data truncation - BUGBUG, func = $%02X, subfunc = $%02X, peerId = %u, address = %s, port = %u", + opcode.first, opcode.second, peerId, udp::Socket::address(addr).c_str(), udp::Socket::port(addr)); } udp::UDPDatagram *dgram = new udp::UDPDatagram;