* Display normal log information in the console's default foreground colour, for those of us with white backgrounds

0.6.6-post-fixes
Justin Clarke Casey 2009-05-25 16:29:01 +00:00
parent eaa89f5a03
commit ca9432d110
1 changed files with 5 additions and 5 deletions

View File

@ -213,7 +213,6 @@ namespace OpenSim.Framework.Console
MatchCollection matches = RE.Matches(text); MatchCollection matches = RE.Matches(text);
string outText = text; string outText = text;
ConsoleColor color = ConsoleColor.White;
if (matches.Count == 1) if (matches.Count == 1)
{ {
@ -227,11 +226,12 @@ namespace OpenSim.Framework.Console
} }
if (level == "error") if (level == "error")
color = ConsoleColor.Red; WriteColorText(ConsoleColor.Red, outText);
else if (level == "warn") else if (level == "warn")
color = ConsoleColor.Yellow; WriteColorText(ConsoleColor.Yellow, outText);
else
WriteColorText(color, outText); System.Console.Write(outText);
System.Console.WriteLine(); System.Console.WriteLine();
} }