aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Console
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Console')
-rw-r--r--OpenSim/Framework/Console/LogBase.cs17
1 files changed, 15 insertions, 2 deletions
diff --git a/OpenSim/Framework/Console/LogBase.cs b/OpenSim/Framework/Console/LogBase.cs
index 6651e5d..ec3c5bc 100644
--- a/OpenSim/Framework/Console/LogBase.cs
+++ b/OpenSim/Framework/Console/LogBase.cs
@@ -238,9 +238,16 @@ namespace OpenSim.Framework.Console
238 { 238 {
239 string now = DateTime.Now.ToString("[MM-dd hh:mm:ss] "); 239 string now = DateTime.Now.ToString("[MM-dd hh:mm:ss] ");
240 Log.Write(now); 240 Log.Write(now);
241 Log.WriteLine(format, args); 241 try
242 Log.Flush(); 242 {
243 Log.WriteLine(format, args);
244 Log.Flush();
245 }
243 246
247 catch (FormatException FE)
248 {
249 System.Console.WriteLine(args);
250 }
244 System.Console.Write(now); 251 System.Console.Write(now);
245 try 252 try
246 { 253 {
@@ -255,6 +262,12 @@ namespace OpenSim.Framework.Console
255 // Some older systems dont support coloured text. 262 // Some older systems dont support coloured text.
256 System.Console.WriteLine(format, args); 263 System.Console.WriteLine(format, args);
257 } 264 }
265 catch (System.FormatException)
266 {
267 // Some older systems dont support coloured text.
268 System.Console.WriteLine(args);
269 }
270
258 return; 271 return;
259 } 272 }
260 } 273 }