[FIX] Don't use the color if we use the logfile as logger

bzr revid: stephane@tinyerp.com-20090130153101-94qlxou5fq8bcp0t
This commit is contained in:
Stephane Wirtel 2009-01-30 16:31:01 +01:00
parent 5e0e536906
commit 8a3a776bbd
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ def init_logger():
logger.addHandler(handler)
logger.setLevel(tools.config['log_level'] or '0')
if isinstance(handler, logging.StreamHandler) and os.name != 'nt':
if handler is logging.StreamHandler and os.name != 'nt':
# change color of level names
# uses of ANSI color codes
# see http://pueblo.sourceforge.net/doc/manual/ansi_color_codes.html