aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application/OpenSim.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-11-29 16:15:52 +0000
committerJustin Clark-Casey (justincc)2011-11-29 16:15:52 +0000
commitb6b0bc7b32ec5009eb482d51d0e9ff711e6ec022 (patch)
tree151e52c3351e14f4e212cd26ba9b04ff32c394a0 /OpenSim/Region/Application/OpenSim.cs
parentMerge branch 'master' of ssh://opensimulator.org/var/git/opensim (diff)
downloadopensim-SC_OLD-b6b0bc7b32ec5009eb482d51d0e9ff711e6ec022.zip
opensim-SC_OLD-b6b0bc7b32ec5009eb482d51d0e9ff711e6ec022.tar.gz
opensim-SC_OLD-b6b0bc7b32ec5009eb482d51d0e9ff711e6ec022.tar.bz2
opensim-SC_OLD-b6b0bc7b32ec5009eb482d51d0e9ff711e6ec022.tar.xz
Add "debug http" command for currently simple extra debug logging of non-event queue inbound http requests to a simulator
Diffstat (limited to 'OpenSim/Region/Application/OpenSim.cs')
-rw-r--r--OpenSim/Region/Application/OpenSim.cs26
1 files changed, 24 insertions, 2 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index ee26e4f..f4ed32e 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);
@@ -889,10 +897,24 @@ namespace OpenSim
889 } 897 }
890 else 898 else
891 { 899 {
892 MainConsole.Instance.Output("packet debug should be 0..255"); 900 MainConsole.Instance.Output("Usage: debug packet 0..255");
901 }
902 }
903
904 break;
905
906 case "http":
907 if (args.Length == 3)
908 {
909 int newDebug;
910 if (int.TryParse(args[2], out newDebug))
911 {
912 MainServer.Instance.DebugLevel = newDebug;
913 break;
893 } 914 }
894 } 915 }
895 916
917 MainConsole.Instance.Output("Usage: debug http 0..2");
896 break; 918 break;
897 919
898 case "scene": 920 case "scene":
@@ -917,7 +939,7 @@ namespace OpenSim
917 } 939 }
918 else 940 else
919 { 941 {
920 MainConsole.Instance.Output("debug scene <scripting> <collisions> <physics> (where inside <> is true/false)"); 942 MainConsole.Instance.Output("Usage: debug scene <scripting> <collisions> <physics> (where inside <> is true/false)");
921 } 943 }
922 944
923 break; 945 break;