summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Hagander2015-02-04 16:40:01 +0000
committerMagnus Hagander2015-02-04 16:40:01 +0000
commitd2980f3f07ac795eccc8956beca387ea12e83091 (patch)
tree7813639458a079fe680f2af8665df6d455548680
parent381c3d0ed2ccebd3444d84f9219f7ee981cfe374 (diff)
Log to stdout instead of stderr
This plays nicer with our cronjob outputs
-rwxr-xr-xtools/commitfest/check_patches_in_archives.py3
-rwxr-xr-xtools/commitfest/update_archive_threads.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/tools/commitfest/check_patches_in_archives.py b/tools/commitfest/check_patches_in_archives.py
index ddbcb0a..60314db 100755
--- a/tools/commitfest/check_patches_in_archives.py
+++ b/tools/commitfest/check_patches_in_archives.py
@@ -29,7 +29,8 @@ if __name__ == "__main__":
# Logging always done to stdout, but we can turn on/off how much
logging.basicConfig(format='%(asctime)s %(levelname)s: %(msg)s',
- level=debug and logging.DEBUG or logging.INFO)
+ level=debug and logging.DEBUG or logging.INFO,
+ stream=sys.stdout)
socket.setdefaulttimeout(settings.ARCHIVES_TIMEOUT)
mag = magic.open(magic.MIME)
diff --git a/tools/commitfest/update_archive_threads.py b/tools/commitfest/update_archive_threads.py
index bc42085..d48f215 100755
--- a/tools/commitfest/update_archive_threads.py
+++ b/tools/commitfest/update_archive_threads.py
@@ -26,7 +26,8 @@ if __name__ == "__main__":
# Logging always done to stdout, but we can turn on/off how much
logging.basicConfig(format='%(asctime)s %(levelname)s: %(msg)s',
- level=debug and logging.DEBUG or logging.INFO)
+ level=debug and logging.DEBUG or logging.INFO,
+ stream=sys.stdout)
logging.debug("Checking for updated mail threads in the archives")
for thread in MailThread.objects.filter(patches__commitfests__status__in=(1,2,3)).distinct():