Log instead of crash on some specific unknown startup bug I'm getting
parent
710cb7589e
commit
1dc107c2d7
|
@ -76,23 +76,64 @@ namespace OpenSim.Region.Environment
|
||||||
public void LoadDefaultSharedModules()
|
public void LoadDefaultSharedModules()
|
||||||
{
|
{
|
||||||
DynamicTextureModule dynamicModule = new DynamicTextureModule();
|
DynamicTextureModule dynamicModule = new DynamicTextureModule();
|
||||||
|
if (m_loadedSharedModules.ContainsKey(dynamicModule.Name))
|
||||||
|
{
|
||||||
|
m_log.Error("MODULES", "Module name \"{0}\" already exists in module list. Module type {1} not added!", dynamicModule.Name, "DynamicTextureModule");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
m_loadedSharedModules.Add(dynamicModule.Name, dynamicModule);
|
m_loadedSharedModules.Add(dynamicModule.Name, dynamicModule);
|
||||||
|
}
|
||||||
|
|
||||||
ChatModule chat = new ChatModule();
|
ChatModule chat = new ChatModule();
|
||||||
|
if (m_loadedSharedModules.ContainsKey(chat.Name))
|
||||||
|
{
|
||||||
|
m_log.Error("MODULES", "Module name \"{0}\" already exists in module list. Module type {1} not added!", chat.Name, "ChatModule");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
m_loadedSharedModules.Add(chat.Name, chat);
|
m_loadedSharedModules.Add(chat.Name, chat);
|
||||||
|
}
|
||||||
|
|
||||||
InstantMessageModule imMod = new InstantMessageModule();
|
InstantMessageModule imMod = new InstantMessageModule();
|
||||||
|
if (m_loadedSharedModules.ContainsKey(imMod.Name))
|
||||||
|
{
|
||||||
|
m_log.Error("MODULES", "Module name \"{0}\" already exists in module list. Module type {1} not added!", imMod.Name, "InstantMessageModule");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
m_loadedSharedModules.Add(imMod.Name, imMod);
|
m_loadedSharedModules.Add(imMod.Name, imMod);
|
||||||
|
}
|
||||||
|
|
||||||
LoadImageURLModule loadMod = new LoadImageURLModule();
|
LoadImageURLModule loadMod = new LoadImageURLModule();
|
||||||
|
if (m_loadedSharedModules.ContainsKey(loadMod.Name))
|
||||||
|
{
|
||||||
|
m_log.Error("MODULES", "Module name \"{0}\" already exists in module list. Module type {1} not added!", loadMod.Name, "LoadImageURLModule");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
m_loadedSharedModules.Add(loadMod.Name, loadMod);
|
m_loadedSharedModules.Add(loadMod.Name, loadMod);
|
||||||
|
}
|
||||||
|
|
||||||
AvatarFactoryModule avatarFactory = new AvatarFactoryModule();
|
AvatarFactoryModule avatarFactory = new AvatarFactoryModule();
|
||||||
|
if (m_loadedSharedModules.ContainsKey(avatarFactory.Name))
|
||||||
|
{
|
||||||
|
m_log.Error("MODULES", "Module name \"{0}\" already exists in module list. Module type {1} not added!", avatarFactory.Name, "AvarFactoryModule");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
m_loadedSharedModules.Add(avatarFactory.Name, avatarFactory);
|
m_loadedSharedModules.Add(avatarFactory.Name, avatarFactory);
|
||||||
|
}
|
||||||
|
|
||||||
XMLRPCModule xmlRpcMod = new XMLRPCModule();
|
XMLRPCModule xmlRpcMod = new XMLRPCModule();
|
||||||
|
if (m_loadedSharedModules.ContainsKey(xmlRpcMod.Name))
|
||||||
|
{
|
||||||
|
m_log.Error("MODULES", "Module name \"{0}\" already exists in module list. Module type {1} not added!", xmlRpcMod.Name, "XMLRPCModule");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
m_loadedSharedModules.Add(xmlRpcMod.Name, xmlRpcMod);
|
m_loadedSharedModules.Add(xmlRpcMod.Name, xmlRpcMod);
|
||||||
|
}
|
||||||
//TextureDownloadModule textureModule = new TextureDownloadModule();
|
//TextureDownloadModule textureModule = new TextureDownloadModule();
|
||||||
//LoadedSharedModules.Add(textureModule.Name, textureModule);
|
//LoadedSharedModules.Add(textureModule.Name, textureModule);
|
||||||
}
|
}
|
||||||
|
@ -220,7 +261,7 @@ namespace OpenSim.Region.Environment
|
||||||
{
|
{
|
||||||
if (pluginType.GetInterface("IRegionModule") != null)
|
if (pluginType.GetInterface("IRegionModule") != null)
|
||||||
{
|
{
|
||||||
modules.Add((IRegionModule) Activator.CreateInstance(pluginType));
|
modules.Add((IRegionModule)Activator.CreateInstance(pluginType));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue