aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSean McNamara2011-02-19 22:47:05 -0500
committerSean McNamara2011-02-19 22:47:05 -0500
commit3c9bf5c476eb294748b53e0c65e7880c26c108ab (patch)
tree4d0dff1fb53b4ec36f74806896e9c22ffcf0953f
parentFix config source by taking it from Initialize (diff)
downloadopensim-SC_OLD-3c9bf5c476eb294748b53e0c65e7880c26c108ab.zip
opensim-SC_OLD-3c9bf5c476eb294748b53e0c65e7880c26c108ab.tar.gz
opensim-SC_OLD-3c9bf5c476eb294748b53e0c65e7880c26c108ab.tar.bz2
opensim-SC_OLD-3c9bf5c476eb294748b53e0c65e7880c26c108ab.tar.xz
Fix config source stuff harder (debug console prints only; no fix yet)
-rw-r--r--OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs b/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs
index 68cf219..ebad12f 100644
--- a/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs
+++ b/OpenSim/Region/OptionalModules/World/AutoBackup/AutoBackupModule.cs
@@ -234,11 +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
237 AutoBackupModuleState st = new AutoBackupModuleState(scene); 239 AutoBackupModuleState st = new AutoBackupModuleState(scene);
238 states.Add(scene, st); 240 states.Add(scene, st);
239 241
240 //Read the config settings and set variables. 242 //Read the config settings and set variables.
241 IConfig config = m_configSource.Configs[scene.RegionInfo.RegionName]; 243 IConfig config = m_configSource.Configs[scene.RegionInfo.RegionName];
244 if(config == null)
245 {
246 m_log.Warn("[AUTO BACKUP MODULE]: Can't get config settings! Here are the IConfigs available:");
247 foreach(IConfig c in m_configSource.Configs)
248 {
249 m_log.Warn("[AUTO BACKUP MODULE]: " + c.Name);
250 }
251 throw new NullReferenceException("This is debug code");
252 }
242 st.SetEnabled(config.GetBoolean("AutoBackup", false)); 253 st.SetEnabled(config.GetBoolean("AutoBackup", false));
243 if(!st.GetEnabled()) //If you don't want AutoBackup, we stop. 254 if(!st.GetEnabled()) //If you don't want AutoBackup, we stop.
244 return; 255 return;