From 2028cc5896fe845e5e80628744165dc870b725d7 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Thu, 21 Jun 2007 18:49:35 +0000 Subject: [PATCH] * Porting console fix from Trunk to Sugilite --- Common/OpenSim.Framework.Console/LogBase.cs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Common/OpenSim.Framework.Console/LogBase.cs b/Common/OpenSim.Framework.Console/LogBase.cs index b625b75a37..1a92d8e804 100644 --- a/Common/OpenSim.Framework.Console/LogBase.cs +++ b/Common/OpenSim.Framework.Console/LogBase.cs @@ -125,9 +125,17 @@ namespace OpenSim.Framework.Console Log.Flush(); if (!m_silent) { - System.Console.ForegroundColor = color; - System.Console.WriteLine(format, args); - System.Console.ResetColor(); + try + { + System.Console.ForegroundColor = color; + System.Console.WriteLine(format, args); + System.Console.ResetColor(); + } + catch (System.ArgumentNullException) + { + // Some older systems dont support coloured text. + System.Console.WriteLine(format, args); + } } return; }