diff options
author | UbitUmarov | 2018-05-26 03:35:56 +0100 |
---|---|---|
committer | UbitUmarov | 2018-05-26 03:35:56 +0100 |
commit | 7c50651cd12eaa5830d8b17c07786f1f497ddca9 (patch) | |
tree | 97a54e8dde57ec69660507afb2aa44f8f4cf8ac5 /OpenSim/Region/OptionalModules/DataSnapshot | |
parent | fix one english typo (diff) | |
download | opensim-SC-7c50651cd12eaa5830d8b17c07786f1f497ddca9.zip opensim-SC-7c50651cd12eaa5830d8b17c07786f1f497ddca9.tar.gz opensim-SC-7c50651cd12eaa5830d8b17c07786f1f497ddca9.tar.bz2 opensim-SC-7c50651cd12eaa5830d8b17c07786f1f497ddca9.tar.xz |
add a check to data_exposure option of DataSnapshot module
Diffstat (limited to 'OpenSim/Region/OptionalModules/DataSnapshot')
-rw-r--r-- | OpenSim/Region/OptionalModules/DataSnapshot/DataSnapshotManager.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/DataSnapshot/DataSnapshotManager.cs b/OpenSim/Region/OptionalModules/DataSnapshot/DataSnapshotManager.cs index fd841d4..dae78d2 100644 --- a/OpenSim/Region/OptionalModules/DataSnapshot/DataSnapshotManager.cs +++ b/OpenSim/Region/OptionalModules/DataSnapshot/DataSnapshotManager.cs | |||
@@ -127,7 +127,15 @@ namespace OpenSim.Region.DataSnapshot | |||
127 | 127 | ||
128 | m_gridinfo.Add( | 128 | m_gridinfo.Add( |
129 | "name", config.Configs["DataSnapshot"].GetString("gridname", "the lost continent of hippo")); | 129 | "name", config.Configs["DataSnapshot"].GetString("gridname", "the lost continent of hippo")); |
130 | |||
130 | m_exposure_level = config.Configs["DataSnapshot"].GetString("data_exposure", m_exposure_level); | 131 | m_exposure_level = config.Configs["DataSnapshot"].GetString("data_exposure", m_exposure_level); |
132 | m_exposure_level = m_exposure_level.ToLower(); | ||
133 | if(m_exposure_level !="all" && m_exposure_level != "minimum") | ||
134 | { | ||
135 | m_log.ErrorFormat("[DATASNAPSHOT]: unknown data_exposure option: '{0}'. defaulting to minimum",m_exposure_level); | ||
136 | m_exposure_level = "minimum"; | ||
137 | } | ||
138 | |||
131 | m_period = config.Configs["DataSnapshot"].GetInt("default_snapshot_period", m_period); | 139 | m_period = config.Configs["DataSnapshot"].GetInt("default_snapshot_period", m_period); |
132 | m_maxStales = config.Configs["DataSnapshot"].GetInt("max_changes_before_update", m_maxStales); | 140 | m_maxStales = config.Configs["DataSnapshot"].GetInt("max_changes_before_update", m_maxStales); |
133 | m_snapsDir = config.Configs["DataSnapshot"].GetString("snapshot_cache_directory", m_snapsDir); | 141 | m_snapsDir = config.Configs["DataSnapshot"].GetString("snapshot_cache_directory", m_snapsDir); |