Fix the Csharp 3.0 vs 4.0 problem in JsonStore initialization.

Cut down on the logging spam.
0.7.4.1
Mic Bowman 2012-04-17 14:15:17 -07:00
parent 2d45ba47ac
commit 4db518b9a3
3 changed files with 7 additions and 5 deletions

View File

@ -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>();

View File

@ -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"));
}
// -----------------------------------------------------------------

View File

@ -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"));
}
// -----------------------------------------------------------------