diff options
author | Justin Clark-Casey (justincc) | 2011-03-25 23:36:58 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-03-25 23:36:58 +0000 |
commit | d8e1c380e67512e0476b2a7b7441ae3acbb4606f (patch) | |
tree | 6532aeb09a6b08fc3f5ab39ac0262b633b3bdfee /OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs | |
parent | in region web loader, print out url that config is being loaded from (this wa... (diff) | |
download | opensim-SC_OLD-d8e1c380e67512e0476b2a7b7441ae3acbb4606f.zip opensim-SC_OLD-d8e1c380e67512e0476b2a7b7441ae3acbb4606f.tar.gz opensim-SC_OLD-d8e1c380e67512e0476b2a7b7441ae3acbb4606f.tar.bz2 opensim-SC_OLD-d8e1c380e67512e0476b2a7b7441ae3acbb4606f.tar.xz |
minor: make it clearer in the log where we're loading region config files and not the regions themselves
Diffstat (limited to '')
-rw-r--r-- | OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs b/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs index f37c399..e26c1d2 100644 --- a/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs +++ b/OpenSim/ApplicationPlugins/LoadRegions/LoadRegionsPlugin.cs | |||
@@ -68,7 +68,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions | |||
68 | 68 | ||
69 | public void Initialise() | 69 | public void Initialise() |
70 | { | 70 | { |
71 | m_log.Error("[LOADREGIONS]: " + Name + " cannot be default-initialized!"); | 71 | m_log.Error("[LOAD REGIONS PLUGIN]: " + Name + " cannot be default-initialized!"); |
72 | throw new PluginNotInitialisedException(Name); | 72 | throw new PluginNotInitialisedException(Name); |
73 | } | 73 | } |
74 | 74 | ||
@@ -85,41 +85,39 @@ namespace OpenSim.ApplicationPlugins.LoadRegions | |||
85 | IRegionLoader regionLoader; | 85 | IRegionLoader regionLoader; |
86 | if (m_openSim.ConfigSource.Source.Configs["Startup"].GetString("region_info_source", "filesystem") == "filesystem") | 86 | if (m_openSim.ConfigSource.Source.Configs["Startup"].GetString("region_info_source", "filesystem") == "filesystem") |
87 | { | 87 | { |
88 | m_log.Info("[LOADREGIONS]: Loading region configurations from filesystem"); | 88 | m_log.Info("[LOAD REGIONS PLUGIN]: Loading region configurations from filesystem"); |
89 | regionLoader = new RegionLoaderFileSystem(); | 89 | regionLoader = new RegionLoaderFileSystem(); |
90 | } | 90 | } |
91 | else | 91 | else |
92 | { | 92 | { |
93 | m_log.Info("[LOADREGIONSPLUGIN]: Loading region configurations from web"); | 93 | m_log.Info("[LOAD REGIONS PLUGIN]: Loading region configurations from web"); |
94 | regionLoader = new RegionLoaderWebServer(); | 94 | regionLoader = new RegionLoaderWebServer(); |
95 | } | 95 | } |
96 | 96 | ||
97 | m_log.Info("[LOADREGIONSPLUGIN]: Loading region configurations..."); | ||
98 | |||
99 | regionLoader.SetIniConfigSource(m_openSim.ConfigSource.Source); | 97 | regionLoader.SetIniConfigSource(m_openSim.ConfigSource.Source); |
100 | RegionInfo[] regionsToLoad = regionLoader.LoadRegions(); | 98 | RegionInfo[] regionsToLoad = regionLoader.LoadRegions(); |
101 | 99 | ||
102 | m_log.Info("[LOADREGIONSPLUGIN]: Loading specific shared modules..."); | 100 | m_log.Info("[LOAD REGIONS PLUGIN]: Loading specific shared modules..."); |
103 | m_log.Info("[LOADREGIONSPLUGIN]: DynamicTextureModule..."); | 101 | m_log.Info("[LOAD REGIONS PLUGIN]: DynamicTextureModule..."); |
104 | m_openSim.ModuleLoader.LoadDefaultSharedModule(new DynamicTextureModule()); | 102 | m_openSim.ModuleLoader.LoadDefaultSharedModule(new DynamicTextureModule()); |
105 | m_log.Info("[LOADREGIONSPLUGIN]: LoadImageURLModule..."); | 103 | m_log.Info("[LOAD REGIONS PLUGIN]: LoadImageURLModule..."); |
106 | m_openSim.ModuleLoader.LoadDefaultSharedModule(new LoadImageURLModule()); | 104 | m_openSim.ModuleLoader.LoadDefaultSharedModule(new LoadImageURLModule()); |
107 | m_log.Info("[LOADREGIONSPLUGIN]: XMLRPCModule..."); | 105 | m_log.Info("[LOAD REGIONS PLUGIN]: XMLRPCModule..."); |
108 | m_openSim.ModuleLoader.LoadDefaultSharedModule(new XMLRPCModule()); | 106 | m_openSim.ModuleLoader.LoadDefaultSharedModule(new XMLRPCModule()); |
109 | // m_log.Info("[LOADREGIONSPLUGIN]: AssetTransactionModule..."); | 107 | // m_log.Info("[LOADREGIONSPLUGIN]: AssetTransactionModule..."); |
110 | // m_openSim.ModuleLoader.LoadDefaultSharedModule(new AssetTransactionModule()); | 108 | // m_openSim.ModuleLoader.LoadDefaultSharedModule(new AssetTransactionModule()); |
111 | m_log.Info("[LOADREGIONSPLUGIN]: Done."); | 109 | m_log.Info("[LOAD REGIONS PLUGIN]: Done."); |
112 | 110 | ||
113 | if (!CheckRegionsForSanity(regionsToLoad)) | 111 | if (!CheckRegionsForSanity(regionsToLoad)) |
114 | { | 112 | { |
115 | m_log.Error("[LOADREGIONS]: Halting startup due to conflicts in region configurations"); | 113 | m_log.Error("[LOAD REGIONS PLUGIN]: Halting startup due to conflicts in region configurations"); |
116 | Environment.Exit(1); | 114 | Environment.Exit(1); |
117 | } | 115 | } |
118 | 116 | ||
119 | for (int i = 0; i < regionsToLoad.Length; i++) | 117 | for (int i = 0; i < regionsToLoad.Length; i++) |
120 | { | 118 | { |
121 | IScene scene; | 119 | IScene scene; |
122 | m_log.Debug("[LOADREGIONS]: Creating Region: " + regionsToLoad[i].RegionName + " (ThreadID: " + | 120 | m_log.Debug("[LOAD REGIONS PLUGIN]: Creating Region: " + regionsToLoad[i].RegionName + " (ThreadID: " + |
123 | Thread.CurrentThread.ManagedThreadId.ToString() + | 121 | Thread.CurrentThread.ManagedThreadId.ToString() + |
124 | ")"); | 122 | ")"); |
125 | 123 | ||
@@ -164,7 +162,7 @@ namespace OpenSim.ApplicationPlugins.LoadRegions | |||
164 | if (regions[i].RegionID == regions[j].RegionID) | 162 | if (regions[i].RegionID == regions[j].RegionID) |
165 | { | 163 | { |
166 | m_log.ErrorFormat( | 164 | m_log.ErrorFormat( |
167 | "[LOADREGIONS]: Regions {0} and {1} have the same UUID {2}", | 165 | "[LOAD REGIONS PLUGIN]: Regions {0} and {1} have the same UUID {2}", |
168 | regions[i].RegionName, regions[j].RegionName, regions[i].RegionID); | 166 | regions[i].RegionName, regions[j].RegionName, regions[i].RegionID); |
169 | return false; | 167 | return false; |
170 | } | 168 | } |
@@ -172,14 +170,14 @@ namespace OpenSim.ApplicationPlugins.LoadRegions | |||
172 | regions[i].RegionLocX == regions[j].RegionLocX && regions[i].RegionLocY == regions[j].RegionLocY) | 170 | regions[i].RegionLocX == regions[j].RegionLocX && regions[i].RegionLocY == regions[j].RegionLocY) |
173 | { | 171 | { |
174 | m_log.ErrorFormat( | 172 | m_log.ErrorFormat( |
175 | "[LOADREGIONS]: Regions {0} and {1} have the same grid location ({2}, {3})", | 173 | "[LOAD REGIONS PLUGIN]: Regions {0} and {1} have the same grid location ({2}, {3})", |
176 | regions[i].RegionName, regions[j].RegionName, regions[i].RegionLocX, regions[i].RegionLocY); | 174 | regions[i].RegionName, regions[j].RegionName, regions[i].RegionLocX, regions[i].RegionLocY); |
177 | return false; | 175 | return false; |
178 | } | 176 | } |
179 | else if (regions[i].InternalEndPoint.Port == regions[j].InternalEndPoint.Port) | 177 | else if (regions[i].InternalEndPoint.Port == regions[j].InternalEndPoint.Port) |
180 | { | 178 | { |
181 | m_log.ErrorFormat( | 179 | m_log.ErrorFormat( |
182 | "[LOADREGIONS]: Regions {0} and {1} have the same internal IP port {2}", | 180 | "[LOAD REGIONS PLUGIN]: Regions {0} and {1} have the same internal IP port {2}", |
183 | regions[i].RegionName, regions[j].RegionName, regions[i].InternalEndPoint.Port); | 181 | regions[i].RegionName, regions[j].RegionName, regions[i].InternalEndPoint.Port); |
184 | return false; | 182 | return false; |
185 | } | 183 | } |