* Maintainence: Experimental console fix for Debian
parent
e1ab1454a4
commit
f3db36fc39
|
@ -107,10 +107,17 @@ namespace OpenSim.Framework.Console
|
||||||
Log.WriteLine(format, args);
|
Log.WriteLine(format, args);
|
||||||
Log.Flush();
|
Log.Flush();
|
||||||
if (!m_silent)
|
if (!m_silent)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
System.Console.ForegroundColor = color;
|
System.Console.ForegroundColor = color;
|
||||||
System.Console.WriteLine(format, args);
|
System.Console.WriteLine(format, args);
|
||||||
System.Console.ResetColor();
|
System.Console.ResetColor();
|
||||||
|
} // Because mono and old debian sucks.
|
||||||
|
catch (System.ArgumentNullException)
|
||||||
|
{
|
||||||
|
System.Console.WriteLine(format, args);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue