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

@@ -97,9 +97,9 @@ processes = Setting(required=True, validator=int, default=-1)
# ends up adding overhead and isn't worth it.
memcached_host = Setting(required=False, validator=str, default=None)
if platform.system() == 'Windows' or not sys.stderr.isatty():
if platform.system() == 'Windows' or not sys.stdout.isatty():
obs = LoggingObserver()
else:
obs = ProgressBarObserver()
obs = ProgressBarObserver(fd=sys.stdout)
observer = Setting(required=True, validator=validateObserver, default=obs)