aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs
diff options
context:
space:
mode:
authorBlueWall2012-01-09 18:19:55 -0500
committerBlueWall2012-01-09 18:19:55 -0500
commit707c8c6f2b7671c0a439a28921daeac8e7219639 (patch)
tree123f16ef388d49734b9ac9b6f709a3b1a68ffd03 /OpenSim/Region/Framework/Scenes/Scene.cs
parentUse our TeleportFlags (diff)
downloadopensim-SC_OLD-707c8c6f2b7671c0a439a28921daeac8e7219639.zip
opensim-SC_OLD-707c8c6f2b7671c0a439a28921daeac8e7219639.tar.gz
opensim-SC_OLD-707c8c6f2b7671c0a439a28921daeac8e7219639.tar.bz2
opensim-SC_OLD-707c8c6f2b7671c0a439a28921daeac8e7219639.tar.xz
Add some run-time debugging support
Add configuration option - DEBUG to enable debugging methods. This is temporary for helping users testing teleport routing be able to report back the data with the test cases. We can remove when finished with this, or leave it if it proves to be useful. Users: set DEBUG = true in OpenSim.ini to get more information from teleport routing. The default is false. It presently prints the TeleportFlags value.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 5e1c768..ed6f68a 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -65,6 +65,7 @@ namespace OpenSim.Region.Framework.Scenes
65 #region Fields 65 #region Fields
66 66
67 public bool EmergencyMonitoring = false; 67 public bool EmergencyMonitoring = false;
68 public bool DEBUG = false;
68 69
69 public SynchronizeSceneHandler SynchronizeScene; 70 public SynchronizeSceneHandler SynchronizeScene;
70 public SimStatsReporter StatsReporter; 71 public SimStatsReporter StatsReporter;
@@ -650,6 +651,8 @@ namespace OpenSim.Region.Framework.Scenes
650 // 651 //
651 IConfig startupConfig = m_config.Configs["Startup"]; 652 IConfig startupConfig = m_config.Configs["Startup"];
652 653
654 DEBUG = startupConfig.GetBoolean("DEBUG", false);
655
653 m_defaultDrawDistance = startupConfig.GetFloat("DefaultDrawDistance",m_defaultDrawDistance); 656 m_defaultDrawDistance = startupConfig.GetFloat("DefaultDrawDistance",m_defaultDrawDistance);
654 m_useBackup = startupConfig.GetBoolean("UseSceneBackup", m_useBackup); 657 m_useBackup = startupConfig.GetBoolean("UseSceneBackup", m_useBackup);
655 if (!m_useBackup) 658 if (!m_useBackup)