diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/Application/OpenSim.cs | 14 |
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": |