[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:
parent
5e0e536906
commit
8a3a776bbd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue