aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAdam Frisby2007-06-21 18:49:35 +0000
committerAdam Frisby2007-06-21 18:49:35 +0000
commit2028cc5896fe845e5e80628744165dc870b725d7 (patch)
tree36fb3f1d5439281cb7cd536bc69b4f1e2c6afc88
parent*Fix for loginuri issue in MassTestClient (diff)
downloadopensim-SC_OLD-2028cc5896fe845e5e80628744165dc870b725d7.zip
opensim-SC_OLD-2028cc5896fe845e5e80628744165dc870b725d7.tar.gz
opensim-SC_OLD-2028cc5896fe845e5e80628744165dc870b725d7.tar.bz2
opensim-SC_OLD-2028cc5896fe845e5e80628744165dc870b725d7.tar.xz
* Porting console fix from Trunk to Sugilite
-rw-r--r--Common/OpenSim.Framework.Console/LogBase.cs14
1 files changed, 11 insertions, 3 deletions
diff --git a/Common/OpenSim.Framework.Console/LogBase.cs b/Common/OpenSim.Framework.Console/LogBase.cs
index b625b75..1a92d8e 100644
--- a/Common/OpenSim.Framework.Console/LogBase.cs
+++ b/Common/OpenSim.Framework.Console/LogBase.cs
@@ -125,9 +125,17 @@ namespace OpenSim.Framework.Console
125 Log.Flush(); 125 Log.Flush();
126 if (!m_silent) 126 if (!m_silent)
127 { 127 {
128 System.Console.ForegroundColor = color; 128 try
129 System.Console.WriteLine(format, args); 129 {
130 System.Console.ResetColor(); 130 System.Console.ForegroundColor = color;
131 System.Console.WriteLine(format, args);
132 System.Console.ResetColor();
133 }
134 catch (System.ArgumentNullException)
135 {
136 // Some older systems dont support coloured text.
137 System.Console.WriteLine(format, args);
138 }
131 } 139 }
132 return; 140 return;
133 } 141 }