mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Fix the Csharp 3.0 vs 4.0 problem in JsonStore initialization.
Cut down on the logging spam.
This commit is contained in:
@@ -74,7 +74,9 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore
|
||||
///
|
||||
/// </summary>
|
||||
// -----------------------------------------------------------------
|
||||
public JsonStore(string value = "")
|
||||
public JsonStore() : this("") {}
|
||||
|
||||
public JsonStore(string value)
|
||||
{
|
||||
m_TakeStore = new List<TakeValueCallbackClass>();
|
||||
m_ReadStore = new List<TakeValueCallbackClass>();
|
||||
|
||||
@@ -85,7 +85,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore
|
||||
if ((m_config = config.Configs["JsonStore"]) == null)
|
||||
{
|
||||
// There is no configuration, the module is disabled
|
||||
m_log.InfoFormat("[JsonStore] no configuration info");
|
||||
// m_log.InfoFormat("[JsonStore] no configuration info");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore
|
||||
return;
|
||||
}
|
||||
|
||||
m_log.InfoFormat("[JsonStore] module {0} enabled",(m_enabled ? "is" : "is not"));
|
||||
m_log.DebugFormat("[JsonStore] module {0} enabled",(m_enabled ? "is" : "is not"));
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------
|
||||
|
||||
@@ -84,7 +84,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore
|
||||
if ((m_config = config.Configs["JsonStore"]) == null)
|
||||
{
|
||||
// There is no configuration, the module is disabled
|
||||
m_log.InfoFormat("[JsonStoreScripts] no configuration info");
|
||||
// m_log.InfoFormat("[JsonStoreScripts] no configuration info");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore
|
||||
return;
|
||||
}
|
||||
|
||||
m_log.InfoFormat("[JsonStoreScripts] module {0} enabled",(m_enabled ? "is" : "is not"));
|
||||
m_log.DebugFormat("[JsonStoreScripts] module {0} enabled",(m_enabled ? "is" : "is not"));
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user