diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs index 95532e8..7affa45 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | |||
@@ -64,7 +64,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
64 | /// <value> | 64 | /// <value> |
65 | /// Debug packet level. See OpenSim.RegisterConsoleCommands() for more details. | 65 | /// Debug packet level. See OpenSim.RegisterConsoleCommands() for more details. |
66 | /// </value> | 66 | /// </value> |
67 | protected int m_debugPacketLevel = 0; | 67 | public int DebugPacketLevel { get; set; } |
68 | 68 | ||
69 | #region Events | 69 | #region Events |
70 | 70 | ||
@@ -477,11 +477,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
477 | RegisterLocalPacketHandlers(); | 477 | RegisterLocalPacketHandlers(); |
478 | } | 478 | } |
479 | 479 | ||
480 | public void SetDebugPacketLevel(int newDebug) | ||
481 | { | ||
482 | m_debugPacketLevel = newDebug; | ||
483 | } | ||
484 | |||
485 | #region Client Methods | 480 | #region Client Methods |
486 | 481 | ||
487 | /// <summary> | 482 | /// <summary> |
@@ -11595,25 +11590,25 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
11595 | /// provide your own method.</param> | 11590 | /// provide your own method.</param> |
11596 | protected void OutPacket(Packet packet, ThrottleOutPacketType throttlePacketType, bool doAutomaticSplitting, UnackedPacketMethod method) | 11591 | protected void OutPacket(Packet packet, ThrottleOutPacketType throttlePacketType, bool doAutomaticSplitting, UnackedPacketMethod method) |
11597 | { | 11592 | { |
11598 | if (m_debugPacketLevel > 0) | 11593 | if (DebugPacketLevel > 0) |
11599 | { | 11594 | { |
11600 | bool logPacket = true; | 11595 | bool logPacket = true; |
11601 | 11596 | ||
11602 | if (m_debugPacketLevel <= 255 | 11597 | if (DebugPacketLevel <= 255 |
11603 | && (packet.Type == PacketType.SimStats || packet.Type == PacketType.SimulatorViewerTimeMessage)) | 11598 | && (packet.Type == PacketType.SimStats || packet.Type == PacketType.SimulatorViewerTimeMessage)) |
11604 | logPacket = false; | 11599 | logPacket = false; |
11605 | 11600 | ||
11606 | if (m_debugPacketLevel <= 200 | 11601 | if (DebugPacketLevel <= 200 |
11607 | && (packet.Type == PacketType.ImagePacket | 11602 | && (packet.Type == PacketType.ImagePacket |
11608 | || packet.Type == PacketType.ImageData | 11603 | || packet.Type == PacketType.ImageData |
11609 | || packet.Type == PacketType.LayerData | 11604 | || packet.Type == PacketType.LayerData |
11610 | || packet.Type == PacketType.CoarseLocationUpdate)) | 11605 | || packet.Type == PacketType.CoarseLocationUpdate)) |
11611 | logPacket = false; | 11606 | logPacket = false; |
11612 | 11607 | ||
11613 | if (m_debugPacketLevel <= 100 && (packet.Type == PacketType.AvatarAnimation || packet.Type == PacketType.ViewerEffect)) | 11608 | if (DebugPacketLevel <= 100 && (packet.Type == PacketType.AvatarAnimation || packet.Type == PacketType.ViewerEffect)) |
11614 | logPacket = false; | 11609 | logPacket = false; |
11615 | 11610 | ||
11616 | if (m_debugPacketLevel <= 50 && packet.Type == PacketType.ImprovedTerseObjectUpdate) | 11611 | if (DebugPacketLevel <= 50 && packet.Type == PacketType.ImprovedTerseObjectUpdate) |
11617 | logPacket = false; | 11612 | logPacket = false; |
11618 | 11613 | ||
11619 | if (logPacket) | 11614 | if (logPacket) |
@@ -11658,17 +11653,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
11658 | /// <param name="Pack">OpenMetaverse.packet</param> | 11653 | /// <param name="Pack">OpenMetaverse.packet</param> |
11659 | public void ProcessInPacket(Packet packet) | 11654 | public void ProcessInPacket(Packet packet) |
11660 | { | 11655 | { |
11661 | if (m_debugPacketLevel > 0) | 11656 | if (DebugPacketLevel > 0) |
11662 | { | 11657 | { |
11663 | bool outputPacket = true; | 11658 | bool outputPacket = true; |
11664 | 11659 | ||
11665 | if (m_debugPacketLevel <= 255 && packet.Type == PacketType.AgentUpdate) | 11660 | if (DebugPacketLevel <= 255 && packet.Type == PacketType.AgentUpdate) |
11666 | outputPacket = false; | 11661 | outputPacket = false; |
11667 | 11662 | ||
11668 | if (m_debugPacketLevel <= 200 && packet.Type == PacketType.RequestImage) | 11663 | if (DebugPacketLevel <= 200 && packet.Type == PacketType.RequestImage) |
11669 | outputPacket = false; | 11664 | outputPacket = false; |
11670 | 11665 | ||
11671 | if (m_debugPacketLevel <= 100 && (packet.Type == PacketType.ViewerEffect || packet.Type == PacketType.AgentAnimation)) | 11666 | if (DebugPacketLevel <= 100 && (packet.Type == PacketType.ViewerEffect || packet.Type == PacketType.AgentAnimation)) |
11672 | outputPacket = false; | 11667 | outputPacket = false; |
11673 | 11668 | ||
11674 | if (outputPacket) | 11669 | if (outputPacket) |