diff options
author | Sean McNamara | 2011-02-19 23:14:43 -0500 |
---|---|---|
committer | Sean McNamara | 2011-02-19 23:14:43 -0500 |
commit | c2658c2f14d75c0c90f40c3673eb35677bcf2cb7 (patch) | |
tree | 17170862ef9433a601f434a967814cc0b44cbf2c /OpenSim/Region/OptionalModules | |
parent | Fix an actual bug in the timer interval calculation (minutes -> msec) (diff) | |
download | opensim-SC_OLD-c2658c2f14d75c0c90f40c3673eb35677bcf2cb7.zip opensim-SC_OLD-c2658c2f14d75c0c90f40c3673eb35677bcf2cb7.tar.gz opensim-SC_OLD-c2658c2f14d75c0c90f40c3673eb35677bcf2cb7.tar.bz2 opensim-SC_OLD-c2658c2f14d75c0c90f40c3673eb35677bcf2cb7.tar.xz |
More relevant console messages, and maybe fix config problem
Diffstat (limited to 'OpenSim/Region/OptionalModules')
-rw-r--r-- | OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs b/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs index 4899718..4735620 100644 --- a/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs +++ b/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs | |||
@@ -234,35 +234,22 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup | |||
234 | if(scene == null) | 234 | if(scene == null) |
235 | return; | 235 | return; |
236 | 236 | ||
237 | m_log.Info("[AUTO BACKUP MODULE]: RegionLoaded for region: " + scene.RegionInfo.RegionName); | ||
238 | |||
239 | AutoBackupModuleState st = new AutoBackupModuleState(scene); | 237 | AutoBackupModuleState st = new AutoBackupModuleState(scene); |
240 | states.Add(scene, st); | 238 | states.Add(scene, st); |
241 | 239 | ||
242 | //Read the config settings and set variables. | 240 | //Read the config settings and set variables. |
243 | IConfig config = scene.Config.Configs["Startup"]; | 241 | IConfig config = scene.Config.Configs["AutoBackupModule"]; |
244 | if(config == null) | 242 | if(config == null) |
245 | { | 243 | { |
246 | m_log.Warn("[AUTO BACKUP MODULE]: Can't get config settings! Here are the IConfigs available:"); | 244 | //No config settings for this, let's just give up. |
247 | foreach(IConfig c in m_configSource.Configs) | 245 | st.SetEnabled(false); |
248 | { | 246 | m_log.Info("[AUTO BACKUP MODULE]: Region " + scene.RegionInfo.RegionName + " is NOT AutoBackup enabled."); |
249 | m_log.Warn("[AUTO BACKUP MODULE]: " + c.Name); | 247 | return; |
250 | } | ||
251 | |||
252 | if(scene.Config != null) | ||
253 | { | ||
254 | m_log.Warn("[AUTO BACKUP MODULE]: And in scene.Config:"); | ||
255 | IConfigSource tmp = scene.Config; | ||
256 | foreach(IConfig d in tmp.Configs) | ||
257 | { | ||
258 | m_log.Warn("[AUTO BACKUP MODULE]: " + d.Name); | ||
259 | } | ||
260 | } | ||
261 | throw new NullReferenceException("This is debug code"); //This crashes the whole process -- not good | ||
262 | } | 248 | } |
263 | st.SetEnabled(config.GetBoolean("AutoBackup", false)); | 249 | st.SetEnabled(config.GetBoolean("AutoBackup", false)); |
264 | if(!st.GetEnabled()) //If you don't want AutoBackup, we stop. | 250 | if(!st.GetEnabled()) //If you don't want AutoBackup, we stop. |
265 | { | 251 | { |
252 | m_log.Info("[AUTO BACKUP MODULE]: Region " + scene.RegionInfo.RegionName + " is NOT AutoBackup enabled."); | ||
266 | return; | 253 | return; |
267 | } | 254 | } |
268 | else | 255 | else |