From 1c68ad2bba43b87e204cf6eafb7f0a31d3272c01 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Wed, 3 Mar 2010 17:50:05 +0000
Subject: remove references to OpenSim.Framework.Commuications.Tests.dll since
all relevant test code has been obsoleted this allows the tests to pass on my
local system
---
.nant/local.include | 22 ----------------------
.../Region/ClientStack/LindenUDP/LLClientView.cs | 16 +++++++++++++---
OpenSim/Region/Framework/Scenes/SceneManager.cs | 2 +-
3 files changed, 14 insertions(+), 26 deletions(-)
diff --git a/.nant/local.include b/.nant/local.include
index 5e02665..c611bd2 100644
--- a/.nant/local.include
+++ b/.nant/local.include
@@ -43,11 +43,6 @@
-
-
-
-
-
@@ -106,17 +101,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
index ef49205..569dc8d 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
@@ -97,6 +97,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
///
public class LLClientView : IClientAPI, IClientCore, IClientIM, IClientChat, IClientIPEndpoint, IStatsCollector
{
+ ///
+ /// Debug packet level. At the moment, only 255 does anything (prints out all in and out packets).
+ ///
+ protected int m_debugPacketLevel = 0;
+
#region Events
public event GenericMessage OnGenericMessage;
@@ -472,6 +477,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
public void SetDebugPacketLevel(int newDebug)
{
+ m_debugPacketLevel = newDebug;
}
#region Client Methods
@@ -10952,7 +10958,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
LLUDPServer.LogPacketHeader(false, m_circuitCode, 0, packet.Type, (ushort)packet.Length);
#endregion BinaryStats
- m_udpServer.SendPacket(m_udpClient, packet, throttlePacketType, true);
+ OutPacket(packet, throttlePacketType, true);
}
///
@@ -10965,6 +10971,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
/// handles splitting manually
protected void OutPacket(Packet packet, ThrottleOutPacketType throttlePacketType, bool doAutomaticSplitting)
{
+ if (m_debugPacketLevel >= 255)
+ m_log.DebugFormat("[CLIENT]: Packet OUT {0}", packet.Type);
+
m_udpServer.SendPacket(m_udpClient, packet, throttlePacketType, doAutomaticSplitting);
}
@@ -11036,10 +11045,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
/// OpenMetaverse.packet
public void ProcessInPacket(Packet Pack)
{
-// m_log.DebugFormat("[CLIENT]: Packet IN {0}", Pack);
+ if (m_debugPacketLevel >= 255)
+ m_log.DebugFormat("[CLIENT]: Packet IN {0}", Pack.Type);
if (!ProcessPacketMethod(Pack))
- m_log.Warn("[CLIENT]: unhandled packet " + Pack);
+ m_log.Warn("[CLIENT]: unhandled packet " + Pack.Type);
PacketPool.Instance.ReturnPacket(Pack);
}
diff --git a/OpenSim/Region/Framework/Scenes/SceneManager.cs b/OpenSim/Region/Framework/Scenes/SceneManager.cs
index 6395d98..680c39a 100644
--- a/OpenSim/Region/Framework/Scenes/SceneManager.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneManager.cs
@@ -422,7 +422,7 @@ namespace OpenSim.Region.Framework.Scenes
if (!scenePresence.IsChildAgent)
{
- m_log.ErrorFormat("Packet debug for {0} {1} set to {2}",
+ m_log.DebugFormat("Packet debug for {0} {1} set to {2}",
scenePresence.Firstname,
scenePresence.Lastname,
newDebug);
--
cgit v1.1