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.iar_mods
parent
b3a12167d6
commit
707c8c6f2b
|
@ -65,6 +65,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
#region Fields
|
#region Fields
|
||||||
|
|
||||||
public bool EmergencyMonitoring = false;
|
public bool EmergencyMonitoring = false;
|
||||||
|
public bool DEBUG = false;
|
||||||
|
|
||||||
public SynchronizeSceneHandler SynchronizeScene;
|
public SynchronizeSceneHandler SynchronizeScene;
|
||||||
public SimStatsReporter StatsReporter;
|
public SimStatsReporter StatsReporter;
|
||||||
|
@ -650,6 +651,8 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
//
|
//
|
||||||
IConfig startupConfig = m_config.Configs["Startup"];
|
IConfig startupConfig = m_config.Configs["Startup"];
|
||||||
|
|
||||||
|
DEBUG = startupConfig.GetBoolean("DEBUG", false);
|
||||||
|
|
||||||
m_defaultDrawDistance = startupConfig.GetFloat("DefaultDrawDistance",m_defaultDrawDistance);
|
m_defaultDrawDistance = startupConfig.GetFloat("DefaultDrawDistance",m_defaultDrawDistance);
|
||||||
m_useBackup = startupConfig.GetBoolean("UseSceneBackup", m_useBackup);
|
m_useBackup = startupConfig.GetBoolean("UseSceneBackup", m_useBackup);
|
||||||
if (!m_useBackup)
|
if (!m_useBackup)
|
||||||
|
|
|
@ -3841,7 +3841,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
ILandObject land = m_scene.LandChannel.GetLandObject(pos.X, pos.Y);
|
ILandObject land = m_scene.LandChannel.GetLandObject(pos.X, pos.Y);
|
||||||
if (land != null)
|
if (land != null)
|
||||||
{
|
{
|
||||||
TeleportFlagsDebug();
|
if (Scene.DEBUG)
|
||||||
|
TeleportFlagsDebug();
|
||||||
|
|
||||||
// If we come in via login, landmark or map, we want to
|
// If we come in via login, landmark or map, we want to
|
||||||
// honor landing points. If we come in via Lure, we want
|
// honor landing points. If we come in via Lure, we want
|
||||||
// to ignore them.
|
// to ignore them.
|
||||||
|
|
|
@ -36,6 +36,12 @@
|
||||||
|
|
||||||
|
|
||||||
[Startup]
|
[Startup]
|
||||||
|
|
||||||
|
;# {DEBUG} {} {Turn on debugging methods. Temporary for debugging teleport routing. We can remove it when that is done, or leave it if it would prove to be useful for other things.} {true false} false
|
||||||
|
;; Turn on debugging methods where available.
|
||||||
|
;; from the selected region_info_source.
|
||||||
|
; DEBUG = false
|
||||||
|
|
||||||
;# {ConsolePrompt} {} {ConsolePrompt} {} "Region (\R) "
|
;# {ConsolePrompt} {} {ConsolePrompt} {} "Region (\R) "
|
||||||
;; Console prompt
|
;; Console prompt
|
||||||
;; Certain special characters can be used to customize the prompt
|
;; Certain special characters can be used to customize the prompt
|
||||||
|
|
Loading…
Reference in New Issue