aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-06-15 01:27:29 +0100
committerJustin Clark-Casey (justincc)2012-06-15 01:27:29 +0100
commitaeed4d3041af75cf18d140208cc4c744a73d0492 (patch)
treee18e1a4e6733566b62a805a0f0f4d1eef97efb98
parentWhen setting debug http level, do this for all known http servers, not just t... (diff)
downloadopensim-SC-aeed4d3041af75cf18d140208cc4c744a73d0492.zip
opensim-SC-aeed4d3041af75cf18d140208cc4c744a73d0492.tar.gz
opensim-SC-aeed4d3041af75cf18d140208cc4c744a73d0492.tar.bz2
opensim-SC-aeed4d3041af75cf18d140208cc4c744a73d0492.tar.xz
minor: Tell user the current debug http level if "debug http" console command is executed without a level parameter
-rw-r--r--OpenSim/Region/Application/OpenSim.cs14
1 files changed, 11 insertions, 3 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index 9043137..abb30a9 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -249,12 +249,13 @@ namespace OpenSim
249 Debug); 249 Debug);
250 250
251 m_console.Commands.AddCommand("Comms", false, "debug http", 251 m_console.Commands.AddCommand("Comms", false, "debug http",
252 "debug http <level>", 252 "debug http [<level>]",
253 "Turn on inbound non-poll http request debugging for everything except the event queue (see debug eq).", 253 "Turn on inbound non-poll http request debugging for everything except the event queue (see debug eq).",
254 "If level <= 0, then no extra logging is done.\n" 254 "If level <= 0, then no extra logging is done.\n"
255 + "If level >= 1, then short warnings are logged when receiving bad input data.\n" 255 + "If level >= 1, then short warnings are logged when receiving bad input data.\n"
256 + "If level >= 2, then long warnings are logged when receiving bad input data.\n" 256 + "If level >= 2, then long warnings are logged when receiving bad input data.\n"
257 + "If level >= 3, then short notices about all incoming non-poll HTTP requests are logged.\n", 257 + "If level >= 3, then short notices about all incoming non-poll HTTP requests are logged.\n"
258 + "If no level is specified then the current level is returned.",
258 Debug); 259 Debug);
259 260
260 m_console.Commands.AddCommand("Comms", false, "debug teleport", "debug teleport", "Toggle teleport route debugging", Debug); 261 m_console.Commands.AddCommand("Comms", false, "debug teleport", "debug teleport", "Toggle teleport route debugging", Debug);
@@ -926,8 +927,15 @@ namespace OpenSim
926 break; 927 break;
927 } 928 }
928 } 929 }
930 else if (args.Length == 2)
931 {
932 MainConsole.Instance.OutputFormat("Current debug http level is {0}", MainServer.DebugLevel);
933 }
934 else
935 {
936 MainConsole.Instance.Output("Usage: debug http 0..3");
937 }
929 938
930 MainConsole.Instance.Output("Usage: debug http 0..3");
931 break; 939 break;
932 940
933 case "scene": 941 case "scene":