diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index c2dd84cf77..e3b857351c 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs @@ -220,10 +220,11 @@ namespace OpenSim m_console.Commands.AddCommand("region", false, "debug packet", "debug packet ", "Turn on packet debugging", - "If level > 255 then all incoming and outgoing packets are logged.\n" + "If level > 255 then all incoming and outgoing packets are logged.\n" + "If level <= 255 then incoming AgentUpdate and outgoing SimStats and SimulatorViewerTimeMessage packets are not logged.\n" + "If level <= 200 then incoming RequestImage and outgoing ImagePacket, ImageData, LayerData and CoarseLocationUpdate packets are not logged.\n" + "If level <= 100 then incoming ViewerEffect and AgentAnimation and outgoing ViewerEffect and AvatarAnimation packets are not logged.\n" + + "If level <= 50 then outgoing ImprovedTerseObjectUpdate packets are not logged.\n" + "If level <= 0 then no packets are logged.", Debug); diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 3b7328dd44..63469c86be 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -11243,23 +11243,26 @@ namespace OpenSim.Region.ClientStack.LindenUDP { if (m_debugPacketLevel > 0) { - bool outputPacket = true; + bool logPacket = true; if (m_debugPacketLevel <= 255 && (packet.Type == PacketType.SimStats || packet.Type == PacketType.SimulatorViewerTimeMessage)) - outputPacket = false; + logPacket = false; if (m_debugPacketLevel <= 200 && (packet.Type == PacketType.ImagePacket || packet.Type == PacketType.ImageData || packet.Type == PacketType.LayerData || packet.Type == PacketType.CoarseLocationUpdate)) - outputPacket = false; + logPacket = false; if (m_debugPacketLevel <= 100 && (packet.Type == PacketType.AvatarAnimation || packet.Type == PacketType.ViewerEffect)) - outputPacket = false; + logPacket = false; + + if (m_debugPacketLevel <= 50 && packet.Type == PacketType.ImprovedTerseObjectUpdate) + logPacket = false; - if (outputPacket) + if (logPacket) m_log.DebugFormat("[CLIENT]: Packet OUT {0}", packet.Type); }