aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-11-20 04:10:03 +0000
committerJustin Clark-Casey (justincc)2012-11-20 04:10:03 +0000
commitdc5711ad6221f087b6250179ac9a6a389581058c (patch)
treefa0dfd2ab75b33cb8e8c86e5672a8c6e035a7621 /OpenSim
parentExpose configuration options for the XmlRpcGridRouter (diff)
downloadopensim-SC_OLD-dc5711ad6221f087b6250179ac9a6a389581058c.zip
opensim-SC_OLD-dc5711ad6221f087b6250179ac9a6a389581058c.tar.gz
opensim-SC_OLD-dc5711ad6221f087b6250179ac9a6a389581058c.tar.bz2
opensim-SC_OLD-dc5711ad6221f087b6250179ac9a6a389581058c.tar.xz
minor: If logging full incoming HTTP data, don't deceptively print ... at the end of the body.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
index 410a76a..66d80cf 100644
--- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
@@ -719,8 +719,11 @@ namespace OpenSim.Framework.Servers.HttpServer
719 if (DebugLevel == 5) 719 if (DebugLevel == 5)
720 { 720 {
721 const int sampleLength = 80; 721 const int sampleLength = 80;
722 char[] sampleChars = new char[sampleLength]; 722 char[] sampleChars = new char[sampleLength + 3];
723 reader.Read(sampleChars, 0, sampleLength); 723 reader.Read(sampleChars, 0, sampleLength);
724 sampleChars[80] = '.';
725 sampleChars[81] = '.';
726 sampleChars[82] = '.';
724 output = new string(sampleChars); 727 output = new string(sampleChars);
725 } 728 }
726 else 729 else
@@ -728,7 +731,7 @@ namespace OpenSim.Framework.Servers.HttpServer
728 output = reader.ReadToEnd(); 731 output = reader.ReadToEnd();
729 } 732 }
730 733
731 m_log.DebugFormat("[BASE HTTP SERVER]: {0}...", output.Replace("\n", @"\n")); 734 m_log.DebugFormat("[BASE HTTP SERVER]: {0}", output.Replace("\n", @"\n"));
732 } 735 }
733 } 736 }
734 737