Skip to content
Snippets Groups Projects
Commit 8a3a776b authored by Stéphane Wirtel's avatar Stéphane Wirtel
Browse files

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

bzr revid: stephane@tinyerp.com-20090130153101-94qlxou5fq8bcp0t
parent 5e0e5369
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment