XXX DEBUGGING!
parent
00e94b0ba8
commit
56df746133
|
@ -454,6 +454,7 @@ namespace OpenSim.Framework
|
|||
{
|
||||
OSDMap info = new OSDMap(4);
|
||||
info["sog"] = OSD.FromString(so.ToXml2());
|
||||
m_log.DebugFormat("[XXX] {0}", so.ToXml2());
|
||||
info["extra"] = OSD.FromString(so.ExtraToXmlString());
|
||||
info["modified"] = OSD.FromBoolean(so.HasGroupChanged);
|
||||
try
|
||||
|
@ -462,7 +463,7 @@ namespace OpenSim.Framework
|
|||
}
|
||||
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);
|
||||
|
|
|
@ -177,7 +177,16 @@ namespace OpenSim.Framework
|
|||
// If there is some input, write it into the request
|
||||
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);
|
||||
|
||||
request.ContentType = "application/json";
|
||||
|
|
Loading…
Reference in New Issue