report IP and port for oversized packet warning;

pull/121/merge
Bryan Biedenkapp 3 weeks ago
parent 1a13d736f2
commit 4883e78065

@ -157,7 +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 // bryanb: this is really a developer warning not a end-user warning, there's nothing the end-users can do about
// this message // this message
if (bufferLen > (DATA_PACKET_LENGTH - OVERSIZED_PACKET_WARN)) { if (bufferLen > (DATA_PACKET_LENGTH - OVERSIZED_PACKET_WARN)) {
LogDebug(LOG_NET, "FrameQueue::write(), WARN: packet length is possibly oversized, possible data truncation - BUGBUG"); 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));
} }
bool ret = true; bool ret = true;

Loading…
Cancel
Save

Powered by TurnKey Linux.