diff options
author | Justin Clarke Casey | 2008-05-31 19:13:38 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-05-31 19:13:38 +0000 |
commit | 01f933c273c4b0005d5b3709f48b9e79c92b38ed (patch) | |
tree | c7048d720906ca49a0194f521006886a4f7035f3 /OpenSim/Region/Application | |
parent | * Ignored some bins and gens (diff) | |
download | opensim-SC-01f933c273c4b0005d5b3709f48b9e79c92b38ed.zip opensim-SC-01f933c273c4b0005d5b3709f48b9e79c92b38ed.tar.gz opensim-SC-01f933c273c4b0005d5b3709f48b9e79c92b38ed.tar.bz2 opensim-SC-01f933c273c4b0005d5b3709f48b9e79c92b38ed.tar.xz |
* Propogate OpenSimMain hack to stop mono-addins scanning warnings to the grid managing
* This hack just temporarily sends console output to /dev/null when we make the relevant addins calls, restoring it afterwards
Diffstat (limited to 'OpenSim/Region/Application')
-rw-r--r-- | OpenSim/Region/Application/OpenSimMain.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index bd18116..d790e41 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs | |||
@@ -157,14 +157,14 @@ namespace OpenSim | |||
157 | if (Directory.Exists("addin-db-001")) | 157 | if (Directory.Exists("addin-db-001")) |
158 | Directory.Delete("addin-db-001", true); | 158 | Directory.Delete("addin-db-001", true); |
159 | 159 | ||
160 | //This blocks the scanning warnings from outputing to the console. | 160 | // This blocks the scanning warnings from outputing to the console. |
161 | TextWriter oldOutput = Console.Out; | 161 | TextWriter oldOutput = Console.Out; |
162 | Console.SetOut(new StreamWriter(Stream.Null)); | 162 | Console.SetOut(new StreamWriter(Stream.Null)); |
163 | 163 | ||
164 | AddinManager.Initialize("."); | 164 | AddinManager.Initialize("."); |
165 | AddinManager.Registry.Update(null); | 165 | AddinManager.Registry.Update(null); |
166 | 166 | ||
167 | //Returns the console.writelines back to the console's stream | 167 | // Returns the console.writelines back to the console's stream |
168 | Console.SetOut(oldOutput); | 168 | Console.SetOut(oldOutput); |
169 | 169 | ||
170 | Application.iniFilePath = startupConfig.GetString("inifile", "OpenSim.ini"); | 170 | Application.iniFilePath = startupConfig.GetString("inifile", "OpenSim.ini"); |