aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authormingchen2008-05-28 02:07:43 +0000
committermingchen2008-05-28 02:07:43 +0000
commit00751ab6f1590d1a45e6ffb4ff7fb8d37fde4431 (patch)
treed3f52aa7ee0c08aac091e285585e8d90d38f0b2e /OpenSim/Region
parentThank you, Grumly57 kindly for: (diff)
downloadopensim-SC-00751ab6f1590d1a45e6ffb4ff7fb8d37fde4431.zip
opensim-SC-00751ab6f1590d1a45e6ffb4ff7fb8d37fde4431.tar.gz
opensim-SC-00751ab6f1590d1a45e6ffb4ff7fb8d37fde4431.tar.bz2
opensim-SC-00751ab6f1590d1a45e6ffb4ff7fb8d37fde4431.tar.xz
*Hiding the warnings about scanning assemblies when initialising
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Application/OpenSimMain.cs9
1 files changed, 7 insertions, 2 deletions
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
94 protected string m_standaloneInventoryPlugin; 94 protected string m_standaloneInventoryPlugin;
95 protected string m_standaloneAssetPlugin; 95 protected string m_standaloneAssetPlugin;
96 protected string m_standaloneUserPlugin; 96 protected string m_standaloneUserPlugin;
97
97 private string m_standaloneInventorySource; 98 private string m_standaloneInventorySource;
98 private string m_standaloneAssetSource; 99 private string m_standaloneAssetSource;
99 private string m_standaloneUserSource; 100 private string m_standaloneUserSource;
@@ -156,12 +157,16 @@ namespace OpenSim
156 if (Directory.Exists("addin-db-001")) 157 if (Directory.Exists("addin-db-001"))
157 Directory.Delete("addin-db-001", true); 158 Directory.Delete("addin-db-001", true);
158 159
159 160 //This blocks the scanning warnings from outputing to the console.
160 m_log.Info("[OPENSIM MAIN]: PLEASE IGNORE THE SCANNING ERRORS BELOW. These are the result of a temporary problem with our plugins manager."); 161 TextWriter oldOutput = Console.Out;
162 Console.SetOut(new StreamWriter(Stream.Null));
161 163
162 AddinManager.Initialize("."); 164 AddinManager.Initialize(".");
163 AddinManager.Registry.Update(null); 165 AddinManager.Registry.Update(null);
164 166
167 //Returns the console.writelines back to the console's stream
168 Console.SetOut(oldOutput);
169
165 Application.iniFilePath = startupConfig.GetString("inifile", "OpenSim.ini"); 170 Application.iniFilePath = startupConfig.GetString("inifile", "OpenSim.ini");
166 171
167 m_config = new IniConfigSource(); 172 m_config = new IniConfigSource();