summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2010-09-10 16:11:00 -0700
committerJesse Keating <jkeating@redhat.com>2010-09-10 16:11:00 -0700
commit93ffd2a67dc1b2a160e5ab44a9b140c1ef372c73 (patch)
treeba7f8aa67e64e82c851a51aae5c5d94b97cb26d6 /src
parent4a710621fea6a9842f3ff342712aaee9fca50699 (diff)
downloadfedora-packager-93ffd2a67dc1b2a160e5ab44a9b140c1ef372c73.zip
fedora-packager-93ffd2a67dc1b2a160e5ab44a9b140c1ef372c73.tar.gz
fedora-packager-93ffd2a67dc1b2a160e5ab44a9b140c1ef372c73.tar.xz
Make our logger print to stdout
It's of my opinion that only errors should go to stderr. For that reason I'll have all logger stuff to go stdout and any errors I'll use print() on.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/fedpkg.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index 96b423f..0eb96c6 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -1074,7 +1074,8 @@ packages will be built sequentially.
log.setLevel(logging.WARNING)
else:
log.setLevel(logging.INFO)
- streamhandler = logging.StreamHandler()
+ # log things to stdout instead of stderr
+ streamhandler = logging.StreamHandler(stream=sys.stdout)
formatter = logging.Formatter('%(message)s')
streamhandler.setFormatter(formatter)
log.addHandler(streamhandler)