From d2980f3f07ac795eccc8956beca387ea12e83091 Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Wed, 4 Feb 2015 17:40:01 +0100 Subject: [PATCH] Log to stdout instead of stderr This plays nicer with our cronjob outputs --- tools/commitfest/check_patches_in_archives.py | 3 ++- tools/commitfest/update_archive_threads.py | 3 ++- 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(): -- 2.39.5