add more debug
parent
de9c561ada
commit
99c2e04456
|
@ -22,8 +22,7 @@ namespace OpenSim.Modules.DataValue
|
||||||
class DataValue : INonSharedRegionModule
|
class DataValue : INonSharedRegionModule
|
||||||
{
|
{
|
||||||
#region Region Module
|
#region Region Module
|
||||||
private static readonly ILog m_log =
|
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
|
||||||
|
|
||||||
private Scene m_scene = null;
|
private Scene m_scene = null;
|
||||||
private IConfig m_config = null;
|
private IConfig m_config = null;
|
||||||
|
@ -55,15 +54,19 @@ namespace OpenSim.Modules.DataValue
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if ((m_config = source.Configs["XEngine"]) == null)
|
m_config = source.Configs["XEngine"];
|
||||||
{
|
|
||||||
// There is no configuration, the module is disabled
|
|
||||||
// m_log.InfoFormat("[JsonStoreScripts] no configuration info");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
m_dataValueDirectory = m_config.GetString("DataValueStorageDirectory", m_dataValueDirectory);
|
if (m_config != null)
|
||||||
m_enabled = m_config.GetBoolean("Enabled", m_enabled);
|
{
|
||||||
|
m_dataValueDirectory = m_config.GetString("DataValueStorageDirectory", m_dataValueDirectory);
|
||||||
|
m_enabled = m_config.GetBoolean("Enabled", m_enabled);
|
||||||
|
|
||||||
|
m_log.DebugFormat("[" + Name + "]: Data storage: = " + m_dataValueDirectory);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m_log.DebugFormat("[" + Name + "]: Cant find config.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@ -72,7 +75,14 @@ namespace OpenSim.Modules.DataValue
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_enabled)
|
if (m_enabled)
|
||||||
m_log.DebugFormat("[" + Name + "]: module is enabled");
|
{
|
||||||
|
m_log.InfoFormat("[" + Name + "]: module is enabled");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m_log.InfoFormat("[" + Name + "]: module is disabled");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void RegionLoaded(Scene scene)
|
public void RegionLoaded(Scene scene)
|
||||||
|
|
Loading…
Reference in New Issue