aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application
diff options
context:
space:
mode:
authorBlueWall2012-01-10 13:41:35 -0500
committerBlueWall2012-01-10 13:41:35 -0500
commit3deb52d3996b45228c2301ecc7445514099f3b13 (patch)
tree1e8429cede19edaad125b0651aaffdb437e192fe /OpenSim/Region/Application
parentAdd some run-time debugging support (diff)
downloadopensim-SC_OLD-3deb52d3996b45228c2301ecc7445514099f3b13.zip
opensim-SC_OLD-3deb52d3996b45228c2301ecc7445514099f3b13.tar.gz
opensim-SC_OLD-3deb52d3996b45228c2301ecc7445514099f3b13.tar.bz2
opensim-SC_OLD-3deb52d3996b45228c2301ecc7445514099f3b13.tar.xz
Teleport Debugging
Move setting from ini to existing facitilies - thanks justincc toggle with console command: debug teleport
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Application/OpenSim.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index 3a1a8c7..867e36d 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -250,6 +250,8 @@ namespace OpenSim
250 + "If level <= 0 then no extra http logging is done.\n", 250 + "If level <= 0 then no extra http logging is done.\n",
251 Debug); 251 Debug);
252 252
253 m_console.Commands.AddCommand("region", false, "debug teleport", "debug teleport", "Toggle teleport route debugging", Debug);
254
253 m_console.Commands.AddCommand("region", false, "debug scene", 255 m_console.Commands.AddCommand("region", false, "debug scene",
254 "debug scene <cripting> <collisions> <physics>", 256 "debug scene <cripting> <collisions> <physics>",
255 "Turn on scene debugging", Debug); 257 "Turn on scene debugging", Debug);
@@ -948,6 +950,21 @@ namespace OpenSim
948 950
949 break; 951 break;
950 952
953 case "teleport":
954 foreach(Scene s in m_sceneManager.Scenes)
955 {
956 if (s.DEBUG)
957 {
958 s.DEBUG = false;
959 MainConsole.Instance.Output("Teleport debugging is disabled!");
960 }
961 else{
962 s.DEBUG = true;
963 MainConsole.Instance.Output("Teleport debugging is enabled!");
964 }
965 }
966 break;
967
951 default: 968 default:
952 MainConsole.Instance.Output("Unknown debug command"); 969 MainConsole.Instance.Output("Unknown debug command");
953 break; 970 break;