From ca9432d110caa3cafc6cfb70ca89e7d36c64bc39 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Mon, 25 May 2009 16:29:01 +0000 Subject: * Display normal log information in the console's default foreground colour, for those of us with white backgrounds --- OpenSim/Framework/Console/LocalConsole.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'OpenSim/Framework/Console/LocalConsole.cs') diff --git a/OpenSim/Framework/Console/LocalConsole.cs b/OpenSim/Framework/Console/LocalConsole.cs index c1ac9b3..737475a 100644 --- a/OpenSim/Framework/Console/LocalConsole.cs +++ b/OpenSim/Framework/Console/LocalConsole.cs @@ -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(); } -- cgit v1.1