XXX DEBUGGING!

bulletsim
Diva Canto 2011-04-30 16:53:43 -07:00
parent 00e94b0ba8
commit 56df746133
2 changed files with 12 additions and 2 deletions

View File

@ -454,6 +454,7 @@ namespace OpenSim.Framework
{ {
OSDMap info = new OSDMap(4); OSDMap info = new OSDMap(4);
info["sog"] = OSD.FromString(so.ToXml2()); info["sog"] = OSD.FromString(so.ToXml2());
m_log.DebugFormat("[XXX] {0}", so.ToXml2());
info["extra"] = OSD.FromString(so.ExtraToXmlString()); info["extra"] = OSD.FromString(so.ExtraToXmlString());
info["modified"] = OSD.FromBoolean(so.HasGroupChanged); info["modified"] = OSD.FromBoolean(so.HasGroupChanged);
try try
@ -462,7 +463,7 @@ namespace OpenSim.Framework
} }
catch (IndexOutOfRangeException e) catch (IndexOutOfRangeException e)
{ {
m_log.WarnFormat("[CHILD AGENT DATA]: scrtips list is shorter than object list."); m_log.WarnFormat("[CHILD AGENT DATA]: scripts list is shorter than object list.");
} }
attObjs.Add(info); attObjs.Add(info);

View File

@ -177,7 +177,16 @@ namespace OpenSim.Framework
// If there is some input, write it into the request // If there is some input, write it into the request
if (data != null) if (data != null)
{ {
string strBuffer = OSDParser.SerializeJsonString(data); string strBuffer = string.Empty;
try
{
strBuffer = OSDParser.SerializeJsonString(data);
}
catch (Exception e)
{
m_log.DebugFormat("[WEB UTIL]: Exception serializing data {0}", e.Message);
throw e;
}
byte[] buffer = System.Text.Encoding.UTF8.GetBytes(strBuffer); byte[] buffer = System.Text.Encoding.UTF8.GetBytes(strBuffer);
request.ContentType = "application/json"; request.ContentType = "application/json";