* 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
0.6.0-stable
Justin Clarke Casey 2008-05-31 19:13:38 +00:00
parent 721ee47149
commit 01f933c273
2 changed files with 9 additions and 2 deletions

View File

@ -118,9 +118,16 @@ namespace OpenSim.Grid.GridServer
protected void LoadGridPlugins() protected void LoadGridPlugins()
{ {
// Temporary hack to stop mono-addins scanning warnings from coming out on the console
TextWriter oldOutput = Console.Out;
Console.SetOut(new StreamWriter(Stream.Null));
AddinManager.Initialize("."); AddinManager.Initialize(".");
AddinManager.Registry.Update(null); AddinManager.Registry.Update(null);
// Returns the console.writelines back to the console's stream
Console.SetOut(oldOutput);
ExtensionNodeList nodes = AddinManager.GetExtensionNodes("/OpenSim/GridServer"); ExtensionNodeList nodes = AddinManager.GetExtensionNodes("/OpenSim/GridServer");
foreach (TypeExtensionNode node in nodes) foreach (TypeExtensionNode node in nodes)
{ {