* 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 afterwards0.6.0-stable
parent
721ee47149
commit
01f933c273
|
@ -118,9 +118,16 @@ namespace OpenSim.Grid.GridServer
|
|||
|
||||
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.Registry.Update(null);
|
||||
|
||||
// Returns the console.writelines back to the console's stream
|
||||
Console.SetOut(oldOutput);
|
||||
|
||||
ExtensionNodeList nodes = AddinManager.GetExtensionNodes("/OpenSim/GridServer");
|
||||
foreach (TypeExtensionNode node in nodes)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue