aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Application')
-rw-r--r--OpenSim/Region/Application/OpenSim.cs33
1 files changed, 29 insertions, 4 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index f6ce291..b4dbeae 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -242,6 +242,14 @@ namespace OpenSim
242 + "If an avatar name is given then only packets from that avatar are logged", 242 + "If an avatar name is given then only packets from that avatar are logged",
243 Debug); 243 Debug);
244 244
245 m_console.Commands.AddCommand("region", false, "debug http",
246 "debug http <level>",
247 "Turn on inbound http request debugging for everything except the event queue (see debug eq).",
248 "If level >= 2 then the handler used to service the request is logged.\n"
249 + "If level >= 1 then incoming HTTP requests are logged.\n"
250 + "If level <= 0 then no extra http logging is done.\n",
251 Debug);
252
245 m_console.Commands.AddCommand("region", false, "debug scene", 253 m_console.Commands.AddCommand("region", false, "debug scene",
246 "debug scene <cripting> <collisions> <physics>", 254 "debug scene <cripting> <collisions> <physics>",
247 "Turn on scene debugging", Debug); 255 "Turn on scene debugging", Debug);
@@ -337,7 +345,7 @@ namespace OpenSim
337 345
338 m_console.Commands.AddCommand("region", false, "backup", 346 m_console.Commands.AddCommand("region", false, "backup",
339 "backup", 347 "backup",
340 "Persist objects to the database now", RunCommand); 348 "Persist currently unsaved object changes immediately instead of waiting for the normal persistence call.", RunCommand);
341 349
342 m_console.Commands.AddCommand("region", false, "create region", 350 m_console.Commands.AddCommand("region", false, "create region",
343 "create region [\"region name\"] <region_file.ini>", 351 "create region [\"region name\"] <region_file.ini>",
@@ -886,13 +894,30 @@ namespace OpenSim
886 if (int.TryParse(args[2], out newDebug)) 894 if (int.TryParse(args[2], out newDebug))
887 { 895 {
888 m_sceneManager.SetDebugPacketLevelOnCurrentScene(newDebug, name); 896 m_sceneManager.SetDebugPacketLevelOnCurrentScene(newDebug, name);
897 // We provide user information elsewhere if any clients had their debug level set.
898// MainConsole.Instance.OutputFormat("Debug packet level set to {0}", newDebug);
889 } 899 }
890 else 900 else
891 { 901 {
892 MainConsole.Instance.Output("packet debug should be 0..255"); 902 MainConsole.Instance.Output("Usage: debug packet 0..255");
903 }
904 }
905
906 break;
907
908 case "http":
909 if (args.Length == 3)
910 {
911 int newDebug;
912 if (int.TryParse(args[2], out newDebug))
913 {
914 MainServer.Instance.DebugLevel = newDebug;
915 MainConsole.Instance.OutputFormat("Debug http level set to {0}", newDebug);
916 break;
893 } 917 }
894 } 918 }
895 919
920 MainConsole.Instance.Output("Usage: debug http 0..2");
896 break; 921 break;
897 922
898 case "scene": 923 case "scene":
@@ -917,13 +942,13 @@ namespace OpenSim
917 } 942 }
918 else 943 else
919 { 944 {
920 MainConsole.Instance.Output("debug scene <scripting> <collisions> <physics> (where inside <> is true/false)"); 945 MainConsole.Instance.Output("Usage: debug scene <scripting> <collisions> <physics> (where inside <> is true/false)");
921 } 946 }
922 947
923 break; 948 break;
924 949
925 default: 950 default:
926 MainConsole.Instance.Output("Unknown debug"); 951 MainConsole.Instance.Output("Unknown debug command");
927 break; 952 break;
928 } 953 }
929 } 954 }