0

Output to stdout instead of stderr

Fixes #645
This commit is contained in:
Andrew Chin
2012-04-07 20:19:24 -04:00
parent f4d43d544a
commit d6602caa04
2 changed files with 5 additions and 5 deletions

View File

@@ -267,15 +267,15 @@ def configure(loglevel=logging.INFO, verbose=False):
logger = logging.getLogger()
outstream = sys.stderr
outstream = sys.stdout
if platform.system() == 'Windows':
# Our custom output stream processor knows how to deal with select ANSI
# color escape sequences
outstream = WindowsOutputStream()
outstream = WindowsOutputStream(outstream)
formatter = ANSIColorFormatter(verbose)
elif sys.stderr.isatty():
elif outstream.isatty():
# terminal logging with ANSI color
formatter = ANSIColorFormatter(verbose)