From: Magnus Hagander Date: Wed, 4 Feb 2015 16:40:01 +0000 (+0100) Subject: Log to stdout instead of stderr X-Git-Url: http://git.postgresql.org/gitweb/review?a=commitdiff_plain;h=d2980f3f07ac795eccc8956beca387ea12e83091;p=pgcommitfest2.git Log to stdout instead of stderr This plays nicer with our cronjob outputs --- 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():