From f819e856e6bd9e09797c2480c310c7e5c51b0f23 Mon Sep 17 00:00:00 2001 From: Aurelien Campeas Date: Tue, 8 Sep 2009 20:07:16 +0200 Subject: win32 adjustments --- logging_ext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'logging_ext.py') diff --git a/logging_ext.py b/logging_ext.py index 4fce3a7..5a27d05 100644 --- a/logging_ext.py +++ b/logging_ext.py @@ -118,7 +118,7 @@ def init_log(debug=False, syslog=False, logthreshold=None, logfile=None, # setHandler method, so do it this way :$ logger.handlers = [handler] isatty = hasattr(sys.__stdout__, 'isatty') and sys.__stdout__.isatty() - if debug and isatty: + if debug and isatty and sys.platform != 'win32': fmt = ColorFormatter(logformat, logdateformat) def col_fact(record): if 'XXX' in record.message: -- cgit v1.2.1