fix some errors when using http debug level > 4
parent
bfb5185747
commit
c643ff4cba
|
@ -189,7 +189,10 @@ namespace OpenSim.Framework
|
||||||
{
|
{
|
||||||
if (DebugLevel == 5)
|
if (DebugLevel == 5)
|
||||||
{
|
{
|
||||||
output = output.Substring(0, 80);
|
int len = output.Length;
|
||||||
|
if(len > 80)
|
||||||
|
len = 80;
|
||||||
|
output = output.Substring(0, len);
|
||||||
output = output + "...";
|
output = output + "...";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1035,13 +1038,13 @@ namespace OpenSim.Framework
|
||||||
{
|
{
|
||||||
writer.Write(obj);
|
writer.Write(obj);
|
||||||
writer.Flush();
|
writer.Flush();
|
||||||
|
if (WebUtil.DebugLevel >= 5)
|
||||||
|
WebUtil.LogOutgoingDetail(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
length = (int)obj.Length;
|
length = (int)obj.Length;
|
||||||
request.ContentLength = length;
|
request.ContentLength = length;
|
||||||
|
|
||||||
if (WebUtil.DebugLevel >= 5)
|
|
||||||
WebUtil.LogOutgoingDetail(buffer);
|
|
||||||
|
|
||||||
Stream requestStream = null;
|
Stream requestStream = null;
|
||||||
try
|
try
|
||||||
|
@ -1188,14 +1191,13 @@ namespace OpenSim.Framework
|
||||||
XmlSerializer serializer = new XmlSerializer(type);
|
XmlSerializer serializer = new XmlSerializer(type);
|
||||||
serializer.Serialize(writer, obj);
|
serializer.Serialize(writer, obj);
|
||||||
writer.Flush();
|
writer.Flush();
|
||||||
|
if (WebUtil.DebugLevel >= 5)
|
||||||
|
WebUtil.LogOutgoingDetail(buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
int length = (int)buffer.Length;
|
int length = (int)buffer.Length;
|
||||||
request.ContentLength = length;
|
request.ContentLength = length;
|
||||||
|
|
||||||
if (WebUtil.DebugLevel >= 5)
|
|
||||||
WebUtil.LogOutgoingDetail(buffer);
|
|
||||||
|
|
||||||
Stream requestStream = null;
|
Stream requestStream = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue