diff options
Diffstat (limited to 'Common/OpenSim.Framework.Console')
-rw-r--r-- | Common/OpenSim.Framework.Console/ConsoleBase.cs | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/Common/OpenSim.Framework.Console/ConsoleBase.cs b/Common/OpenSim.Framework.Console/ConsoleBase.cs index 4b0f7b1..30854fe 100644 --- a/Common/OpenSim.Framework.Console/ConsoleBase.cs +++ b/Common/OpenSim.Framework.Console/ConsoleBase.cs | |||
@@ -108,9 +108,16 @@ namespace OpenSim.Framework.Console | |||
108 | Log.Flush(); | 108 | Log.Flush(); |
109 | if (!m_silent) | 109 | if (!m_silent) |
110 | { | 110 | { |
111 | System.Console.ForegroundColor = color; | 111 | try |
112 | System.Console.WriteLine(format, args); | 112 | { |
113 | System.Console.ResetColor(); | 113 | System.Console.ForegroundColor = color; |
114 | System.Console.WriteLine(format, args); | ||
115 | System.Console.ResetColor(); | ||
116 | } // Because mono and old debian sucks. | ||
117 | catch (System.ArgumentNullException) | ||
118 | { | ||
119 | System.Console.WriteLine(format, args); | ||
120 | } | ||
114 | } | 121 | } |
115 | return; | 122 | return; |
116 | } | 123 | } |