From 20473af89240457c1517bb547f8fc239478fd720 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Thu, 20 Mar 2008 13:03:26 +0000 Subject: 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 +- OpenSim/Framework/Communications/Capabilities/LLSDHelpers.cs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'OpenSim/Framework/Communications') diff --git a/OpenSim/Framework/Communications/Capabilities/Caps.cs b/OpenSim/Framework/Communications/Capabilities/Caps.cs index 80949fe..878b0cc 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 bf47be7..a39f5aa 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(); } -- cgit v1.1