From 0913d43c50ada932bc7def6109812575692277cf Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Fri, 17 Dec 2010 22:29:43 +0000 Subject: minor: 'debug packet' console command level <= 50 then don't log ImprovedTerseObjectUpdate messages --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'OpenSim/Region/ClientStack') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 3b7328d..63469c8 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); } -- cgit v1.1