Some log fixing for the LoadRegionsPlugin

afrisby
Justin Clarke Casey 2007-12-23 12:34:30 +00:00
parent 77a2755e14
commit 984f2da17d
1 changed files with 8 additions and 8 deletions

View File

@ -49,17 +49,17 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
{ {
public void Initialise(OpenSimMain openSim) public void Initialise(OpenSimMain openSim)
{ {
System.Console.WriteLine("Load Regions addin being initialised"); MainLog.Instance.Notice("LOADREGIONS", "Load Regions addin being initialised");
IRegionLoader regionLoader; IRegionLoader regionLoader;
if (openSim.ConfigSource.Configs["Startup"].GetString("region_info_source", "filesystem") == "filesystem") if (openSim.ConfigSource.Configs["Startup"].GetString("region_info_source", "filesystem") == "filesystem")
{ {
MainLog.Instance.Notice("Loading Region Info from filesystem"); MainLog.Instance.Notice("LOADREGIONS", "Loading Region Info from filesystem");
regionLoader = new RegionLoaderFileSystem(); regionLoader = new RegionLoaderFileSystem();
} }
else else
{ {
MainLog.Instance.Notice("Loading Region Info from web"); MainLog.Instance.Notice("LOADREGIONSPLUGIN", "Loading Region Info from web");
regionLoader = new RegionLoaderWebServer(); regionLoader = new RegionLoaderWebServer();
} }
@ -70,7 +70,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
for (int i = 0; i < regionsToLoad.Length; i++) for (int i = 0; i < regionsToLoad.Length; i++)
{ {
MainLog.Instance.Debug("Creating Region: " + regionsToLoad[i].RegionName); MainLog.Instance.Debug("LOADREGIONS", "Creating Region: " + regionsToLoad[i].RegionName);
openSim.CreateRegion(regionsToLoad[i]); openSim.CreateRegion(regionsToLoad[i]);
} }
@ -79,17 +79,17 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
} }
public void LoadRegionFromConfig(OpenSimMain openSim, ulong regionhandle) public void LoadRegionFromConfig(OpenSimMain openSim, ulong regionhandle)
{ {
System.Console.WriteLine("Load Regions addin being initialised"); MainLog.Instance.Notice("LOADREGIONS", "Load Regions addin being initialised");
IRegionLoader regionLoader; IRegionLoader regionLoader;
if (openSim.ConfigSource.Configs["Startup"].GetString("region_info_source", "filesystem") == "filesystem") if (openSim.ConfigSource.Configs["Startup"].GetString("region_info_source", "filesystem") == "filesystem")
{ {
MainLog.Instance.Notice("Loading Region Info from filesystem"); MainLog.Instance.Notice("LOADREGIONS", "Loading Region Info from filesystem");
regionLoader = new RegionLoaderFileSystem(); regionLoader = new RegionLoaderFileSystem();
} }
else else
{ {
MainLog.Instance.Notice("Loading Region Info from web"); MainLog.Instance.Notice("LOADREGIONS", "Loading Region Info from web");
regionLoader = new RegionLoaderWebServer(); regionLoader = new RegionLoaderWebServer();
} }
@ -99,7 +99,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
{ {
if (regionhandle == regionsToLoad[i].RegionHandle) if (regionhandle == regionsToLoad[i].RegionHandle)
{ {
MainLog.Instance.Debug("Creating Region: " + regionsToLoad[i].RegionName); MainLog.Instance.Debug("LOADREGIONS", "Creating Region: " + regionsToLoad[i].RegionName);
openSim.CreateRegion(regionsToLoad[i]); openSim.CreateRegion(regionsToLoad[i]);
} }
} }