From 00751ab6f1590d1a45e6ffb4ff7fb8d37fde4431 Mon Sep 17 00:00:00 2001 From: mingchen Date: Wed, 28 May 2008 02:07:43 +0000 Subject: *Hiding the warnings about scanning assemblies when initialising --- OpenSim/Region/Application/OpenSimMain.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index 9e79505..bd18116 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs @@ -94,6 +94,7 @@ namespace OpenSim protected string m_standaloneInventoryPlugin; protected string m_standaloneAssetPlugin; protected string m_standaloneUserPlugin; + private string m_standaloneInventorySource; private string m_standaloneAssetSource; private string m_standaloneUserSource; @@ -156,12 +157,16 @@ namespace OpenSim if (Directory.Exists("addin-db-001")) Directory.Delete("addin-db-001", true); - - m_log.Info("[OPENSIM MAIN]: PLEASE IGNORE THE SCANNING ERRORS BELOW. These are the result of a temporary problem with our plugins manager."); + //This blocks the scanning warnings from outputing to the console. + TextWriter oldOutput = Console.Out; + Console.SetOut(new StreamWriter(Stream.Null)); AddinManager.Initialize("."); AddinManager.Registry.Update(null); + //Returns the console.writelines back to the console's stream + Console.SetOut(oldOutput); + Application.iniFilePath = startupConfig.GetString("inifile", "OpenSim.ini"); m_config = new IniConfigSource(); -- cgit v1.1