From 20473af89240457c1517bb547f8fc239478fd720 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Thu, 20 Mar 2008 13:03:26 +0000 Subject: [PATCH] Another poxy patch which consists mainly of logging changes (some already commented out) to find out what CAPS is doing --- OpenSim/Framework/Communications/Capabilities/Caps.cs | 2 +- .../Framework/Communications/Capabilities/LLSDHelpers.cs | 6 ++++++ OpenSim/Region/Communications/Local/LocalLoginService.cs | 3 ++- .../Region/Environment/Scenes/SceneCommunicationService.cs | 3 +-- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/OpenSim/Framework/Communications/Capabilities/Caps.cs b/OpenSim/Framework/Communications/Capabilities/Caps.cs index 80949fe0b3..878b0cc7bc 100644 --- a/OpenSim/Framework/Communications/Capabilities/Caps.cs +++ b/OpenSim/Framework/Communications/Capabilities/Caps.cs @@ -105,8 +105,8 @@ namespace OpenSim.Region.Capabilities /// public void RegisterHandlers() { - m_log.Info("[CAPS]: Registering CAPS handlers"); string capsBase = "/CAPS/" + m_capsObjectPath; + try { m_httpListener.AddStreamHandler( diff --git a/OpenSim/Framework/Communications/Capabilities/LLSDHelpers.cs b/OpenSim/Framework/Communications/Capabilities/LLSDHelpers.cs index bf47be7abc..a39f5aa84a 100644 --- a/OpenSim/Framework/Communications/Capabilities/LLSDHelpers.cs +++ b/OpenSim/Framework/Communications/Capabilities/LLSDHelpers.cs @@ -35,6 +35,9 @@ namespace OpenSim.Region.Capabilities { public class LLSDHelpers { +// private static readonly log4net.ILog m_log +// = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + public static string SerialiseLLSDReply(object obj) { StringWriter sw = new StringWriter(); @@ -44,6 +47,9 @@ namespace OpenSim.Region.Capabilities SerializeLLSDType(writer, obj); writer.WriteEndElement(); writer.Close(); + + //m_log.DebugFormat("[LLSD Helpers]: Generated serialized LLSD reply {0}", sw.ToString()); + return sw.ToString(); } diff --git a/OpenSim/Region/Communications/Local/LocalLoginService.cs b/OpenSim/Region/Communications/Local/LocalLoginService.cs index dca8e6545e..9f4723990b 100644 --- a/OpenSim/Region/Communications/Local/LocalLoginService.cs +++ b/OpenSim/Region/Communications/Local/LocalLoginService.cs @@ -43,7 +43,8 @@ namespace OpenSim.Region.Communications.Local public class LocalLoginService : LoginService { - private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); + private static readonly log4net.ILog m_log + = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); private CommunicationsLocal m_Parent; diff --git a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs index 01c78ab3ea..e51c58d569 100644 --- a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs +++ b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs @@ -97,8 +97,7 @@ namespace OpenSim.Region.Environment.Scenes regionCommsHost.OnAvatarCrossingIntoRegion += AgentCrossing; regionCommsHost.OnCloseAgentConnection += CloseConnection; regionCommsHost.OnRegionUp += newRegionUp; - regionCommsHost.OnChildAgentUpdate += ChildAgentUpdate; - + regionCommsHost.OnChildAgentUpdate += ChildAgentUpdate; } else {