Add client name to packet resend log messages to make them a bit more informative
parent
7ae9266186
commit
e4858b0eeb
|
@ -695,9 +695,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
if (packet.Header.Reliable && !udpClient.PacketArchive.TryEnqueue(packet.Header.Sequence))
|
if (packet.Header.Reliable && !udpClient.PacketArchive.TryEnqueue(packet.Header.Sequence))
|
||||||
{
|
{
|
||||||
if (packet.Header.Resent)
|
if (packet.Header.Resent)
|
||||||
m_log.Debug("[LLUDPSERVER]: Received a resend of already processed packet #" + packet.Header.Sequence + ", type: " + packet.Type);
|
m_log.DebugFormat(
|
||||||
else
|
"[LLUDPSERVER]: Received a resend of already processed packet #{0}, type {1} from {2}",
|
||||||
m_log.Warn("[LLUDPSERVER]: Received a duplicate (not marked as resend) of packet #" + packet.Header.Sequence + ", type: " + packet.Type);
|
packet.Header.Sequence, packet.Type, client.Name);
|
||||||
|
else
|
||||||
|
m_log.WarnFormat(
|
||||||
|
"[LLUDPSERVER]: Received a duplicate (not marked as resend) of packet #{0}, type {1} from {2}",
|
||||||
|
packet.Header.Sequence, packet.Type, client.Name);
|
||||||
|
|
||||||
// Avoid firing a callback twice for the same packet
|
// Avoid firing a callback twice for the same packet
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue