summaryrefslogtreecommitdiff
path: root/logging_ext.py
diff options
context:
space:
mode:
authorAurelien Campeas <devnull@localhost>2009-09-08 20:07:16 +0200
committerAurelien Campeas <devnull@localhost>2009-09-08 20:07:16 +0200
commitf819e856e6bd9e09797c2480c310c7e5c51b0f23 (patch)
tree104efcfb852e0e9bfa42377458bfa8672b3a36bb /logging_ext.py
parentc24c4f2a0553563c974047a699245d42d1f712c1 (diff)
downloadlogilab-common-f819e856e6bd9e09797c2480c310c7e5c51b0f23.tar.gz
win32 adjustments
Diffstat (limited to 'logging_ext.py')
-rw-r--r--logging_ext.py2
1 files changed, 1 insertions, 1 deletions
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: