mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
* Display normal log information in the console's default foreground colour, for those of us with white backgrounds
This commit is contained in:
@@ -213,7 +213,6 @@ namespace OpenSim.Framework.Console
|
||||
MatchCollection matches = RE.Matches(text);
|
||||
|
||||
string outText = text;
|
||||
ConsoleColor color = ConsoleColor.White;
|
||||
|
||||
if (matches.Count == 1)
|
||||
{
|
||||
@@ -227,11 +226,12 @@ namespace OpenSim.Framework.Console
|
||||
}
|
||||
|
||||
if (level == "error")
|
||||
color = ConsoleColor.Red;
|
||||
WriteColorText(ConsoleColor.Red, outText);
|
||||
else if (level == "warn")
|
||||
color = ConsoleColor.Yellow;
|
||||
|
||||
WriteColorText(color, outText);
|
||||
WriteColorText(ConsoleColor.Yellow, outText);
|
||||
else
|
||||
System.Console.Write(outText);
|
||||
|
||||
System.Console.WriteLine();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user