Added ModuleName to /OpenSim/StartUp modules + debug messages during startup
parent
130dea789a
commit
704e491c3a
|
@ -40,6 +40,10 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
|
|||
[Extension("/OpenSim/Startup")]
|
||||
public class LoadRegionsPlugin : IApplicationPlugin
|
||||
{
|
||||
public string ModuleName()
|
||||
{
|
||||
return "OpenSim.ApplicationPlugins.LoadRegions.LoadRegionsPlugin";
|
||||
}
|
||||
public void Initialise(OpenSimMain openSim)
|
||||
{
|
||||
MainLog.Instance.Notice("LOADREGIONS", "Load Regions addin being initialised");
|
||||
|
|
|
@ -50,6 +50,11 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
|
|||
private BaseHttpServer m_httpd;
|
||||
private string requiredPassword = "";
|
||||
|
||||
public string ModuleName()
|
||||
{
|
||||
return "OpenSim.ApplicationPlugins.LoadRegions.RemoteAdminPlugin";
|
||||
}
|
||||
|
||||
public void Initialise(OpenSimMain openSim)
|
||||
{
|
||||
try
|
||||
|
@ -245,5 +250,6 @@ namespace OpenSim.ApplicationPlugins.LoadRegions
|
|||
public void Close()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -37,5 +37,6 @@ namespace OpenSim
|
|||
{
|
||||
void Initialise(OpenSimMain openSim);
|
||||
void Close();
|
||||
string ModuleName();
|
||||
}
|
||||
}
|
|
@ -294,14 +294,12 @@ namespace OpenSim
|
|||
m_log = CreateLog();
|
||||
MainLog.Instance = m_log;
|
||||
|
||||
MainLog.Instance.Verbose("STARTUP", "TEDD DEBUG #1");
|
||||
// Do baseclass startup sequence: OpenSim.Region.ClientStack.RegionApplicationBase.StartUp
|
||||
// TerrainManager, StorageManager, HTTP Server
|
||||
// This base will call abstract Initialize
|
||||
base.StartUp();
|
||||
|
||||
|
||||
MainLog.Instance.Verbose("STARTUP", "TEDD DEBUG #2");
|
||||
// StandAlone mode? m_sandbox is determined by !startupConfig.GetBoolean("gridmode", false)
|
||||
if (m_sandbox)
|
||||
{
|
||||
|
@ -340,26 +338,21 @@ namespace OpenSim
|
|||
m_httpServer.AddStreamHandler(new SimStatusHandler());
|
||||
}
|
||||
|
||||
MainLog.Instance.Verbose("STARTUP", "TEDD DEBUG #3");
|
||||
// Create a ModuleLoader instance
|
||||
m_moduleLoader = new ModuleLoader(m_log, m_config);
|
||||
|
||||
MainLog.Instance.Verbose("STARTUP", "TEDD DEBUG #4");
|
||||
ExtensionNodeList nodes = AddinManager.GetExtensionNodes("/OpenSim/Startup");
|
||||
MainLog.Instance.Verbose("PLUGINS", "Loading {0} OpenSim application plugins", nodes.Count);
|
||||
MainLog.Instance.Verbose("STARTUP", "TEDD DEBUG #5");
|
||||
|
||||
int ctedd = 0;
|
||||
int modcount = 0;
|
||||
foreach (TypeExtensionNode node in nodes)
|
||||
{
|
||||
IApplicationPlugin plugin = (IApplicationPlugin)node.CreateInstance();
|
||||
MainLog.Instance.Debug("PLUGINS", "Loading OpenSim application plugin: ", plugin.GetType().AssemblyQualifiedName.ToString());
|
||||
MainLog.Instance.Debug("PLUGINS", "Loading OpenSim application plugin(" + modcount + "): ", plugin.ModuleName());
|
||||
|
||||
plugin.Initialise(this);
|
||||
m_plugins.Add(plugin);
|
||||
MainLog.Instance.Verbose("STARTUP", "TEDD DEBUG #6: " + ++ctedd);
|
||||
}
|
||||
MainLog.Instance.Verbose("STARTUP", "TEDD DEBUG #7");
|
||||
|
||||
// Start UDP servers
|
||||
//for (int i = 0; i < m_udpServers.Count; i++)
|
||||
|
|
Loading…
Reference in New Issue