Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix bug where debug http level 6 could not be specified. Also convert…

…s newlines at this level to '\n' to enable them to be logged.
  • Loading branch information...
commit f4579527551f474f68f368ffdd0cd0a89d31d504 1 parent 818379b
@justincc justincc authored
View
6 OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
@@ -727,14 +727,14 @@ private void LogIncomingInDetail(OSHttpRequest request)
const int sampleLength = 80;
char[] sampleChars = new char[sampleLength];
reader.Read(sampleChars, 0, sampleLength);
- output = string.Format("[BASE HTTP SERVER]: {0}...", new string(sampleChars).Replace("\n", @"\n"));
+ output = new string(sampleChars);
}
else
{
- output = string.Format("[BASE HTTP SERVER]: {0}", reader.ReadToEnd());
+ output = reader.ReadToEnd();
}
- m_log.Debug(output);
+ m_log.DebugFormat("[BASE HTTP SERVER]: {0}...", output.Replace("\n", @"\n"));
}
}
View
4 OpenSim/Framework/Servers/MainServer.cs
@@ -177,9 +177,9 @@ private static void HandleDebugHttpCommand(string module, string[] cmdparams)
return;
}
- if (newDebug < 0 || newDebug > 5)
+ if (newDebug < 0 || newDebug > 6)
{
- MainConsole.Instance.OutputFormat("{0} is outside the valid debug level range of 0..5", newDebug);
+ MainConsole.Instance.OutputFormat("{0} is outside the valid debug level range of 0..6", newDebug);
return;
}
Please sign in to comment.
Something went wrong with that request. Please try again.