diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 2f16e04..6588f3d 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -11737,7 +11737,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
11737 | logPacket = false; | 11737 | logPacket = false; |
11738 | 11738 | ||
11739 | if (logPacket) | 11739 | if (logPacket) |
11740 | m_log.DebugFormat("[CLIENT]: Packet OUT {0}", packet.Type); | 11740 | m_log.DebugFormat("[CLIENT]: Packet OUT {0} to {1}", packet.Type, Name); |
11741 | } | 11741 | } |
11742 | 11742 | ||
11743 | m_udpServer.SendPacket(m_udpClient, packet, throttlePacketType, doAutomaticSplitting, method); | 11743 | m_udpServer.SendPacket(m_udpClient, packet, throttlePacketType, doAutomaticSplitting, method); |
@@ -11778,8 +11778,22 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
11778 | /// <param name="Pack">OpenMetaverse.packet</param> | 11778 | /// <param name="Pack">OpenMetaverse.packet</param> |
11779 | public void ProcessInPacket(Packet packet) | 11779 | public void ProcessInPacket(Packet packet) |
11780 | { | 11780 | { |
11781 | if (m_debugPacketLevel >= 255) | 11781 | if (m_debugPacketLevel > 0) |
11782 | m_log.DebugFormat("[CLIENT]: Packet IN {0}", packet.Type); | 11782 | { |
11783 | bool outputPacket = true; | ||
11784 | |||
11785 | if (m_debugPacketLevel <= 255 && packet.Type == PacketType.AgentUpdate) | ||
11786 | outputPacket = false; | ||
11787 | |||
11788 | if (m_debugPacketLevel <= 200 && packet.Type == PacketType.RequestImage) | ||
11789 | outputPacket = false; | ||
11790 | |||
11791 | if (m_debugPacketLevel <= 100 && (packet.Type == PacketType.ViewerEffect || packet.Type == PacketType.AgentAnimation)) | ||
11792 | outputPacket = false; | ||
11793 | |||
11794 | if (outputPacket) | ||
11795 | m_log.DebugFormat("[CLIENT]: Packet IN {0} from {1}", packet.Type, Name); | ||
11796 | } | ||
11783 | 11797 | ||
11784 | if (!ProcessPacketMethod(packet)) | 11798 | if (!ProcessPacketMethod(packet)) |
11785 | m_log.Warn("[CLIENT]: unhandled packet " + packet.Type); | 11799 | m_log.Warn("[CLIENT]: unhandled packet " + packet.Type); |