Fix ghosts copy of SimulatorFeatureModule to enable logging.
parent
66b1c37973
commit
20cede12a9
|
@ -57,8 +57,8 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||||
[Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "SimulatorFeaturesModule")]
|
[Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "SimulatorFeaturesModule")]
|
||||||
public class SimulatorFeaturesModule : ISharedRegionModule, ISimulatorFeaturesModule
|
public class SimulatorFeaturesModule : ISharedRegionModule, ISimulatorFeaturesModule
|
||||||
{
|
{
|
||||||
// private static readonly ILog m_log =
|
private static readonly ILog m_log =
|
||||||
// LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
|
|
||||||
public event SimulatorFeaturesRequestDelegate OnSimulatorFeaturesRequest;
|
public event SimulatorFeaturesRequestDelegate OnSimulatorFeaturesRequest;
|
||||||
|
|
||||||
|
@ -85,16 +85,21 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||||
{
|
{
|
||||||
// These are normaly set in their respective modules
|
// These are normaly set in their respective modules
|
||||||
m_SearchURL = config.GetString("SearchServerURI", m_SearchURL);
|
m_SearchURL = config.GetString("SearchServerURI", m_SearchURL);
|
||||||
|
|
||||||
m_DestinationGuideURL = config.GetString ("DestinationGuideURI", m_DestinationGuideURL);
|
m_DestinationGuideURL = config.GetString ("DestinationGuideURI", m_DestinationGuideURL);
|
||||||
|
|
||||||
if (m_DestinationGuideURL == string.Empty) // Make this consistent with the variable in the LoginService config
|
if (m_DestinationGuideURL == string.Empty) // Make this consistent with the variable in the LoginService config
|
||||||
m_DestinationGuideURL = config.GetString("DestinationGuide", m_DestinationGuideURL);
|
m_DestinationGuideURL = config.GetString("DestinationGuide", m_DestinationGuideURL);
|
||||||
|
|
||||||
m_ExportSupported = config.GetBoolean("ExportSupported", m_ExportSupported);
|
m_ExportSupported = config.GetBoolean("ExportSupported", m_ExportSupported);
|
||||||
m_GridURL = Util.GetConfigVarFromSections<string>(source, "GatekeeperURI",
|
|
||||||
new string[] { "Startup", "Hypergrid", "SimulatorFeatures" }, String.Empty);
|
m_GridURL = Util.GetConfigVarFromSections<string>(
|
||||||
|
source, "GatekeeperURI", new string[] { "Startup", "Hypergrid", "SimulatorFeatures" }, String.Empty);
|
||||||
|
|
||||||
m_GridName = config.GetString("GridName", string.Empty);
|
m_GridName = config.GetString("GridName", string.Empty);
|
||||||
if (m_GridName == string.Empty)
|
if (m_GridName == string.Empty)
|
||||||
m_GridName = Util.GetConfigVarFromSections<string>(source, "gridname",
|
m_GridName = Util.GetConfigVarFromSections<string>(
|
||||||
new string[] { "GridInfo", "SimulatorFeatures" }, String.Empty);
|
source, "gridname", new string[] { "GridInfo", "SimulatorFeatures" }, String.Empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
AddDefaultFeatures();
|
AddDefaultFeatures();
|
||||||
|
|
Loading…
Reference in New Issue