From 4cd4c5d848eb3ac14c85f86f4e6a9f29cf1453bc Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Wed, 25 Apr 2012 18:04:33 -0500 Subject: [PATCH] Fix errant message from logger. --- scripts/review-stats/review-stats.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/review-stats/review-stats.py b/scripts/review-stats/review-stats.py index 59af30e..c17608a 100755 --- a/scripts/review-stats/review-stats.py +++ b/scripts/review-stats/review-stats.py @@ -15,6 +15,7 @@ VERSION = "2.5" import bugzilla import datetime import glob +import logging import operator import os import string @@ -39,6 +40,9 @@ SCITECH = '505154' # These will show up in a query but aren't actual review tickets trackers = set([ACCEPT, BUNDLED, FEATURE, NEEDSPONSOR, GUIDELINES, SCITECH]) +# So the bugzilla module has some way to complain +logging.basicConfig() + def parse_commandline(): usage = "usage: %prog [options] -d -t " parser = OptionParser(usage) @@ -362,7 +366,7 @@ def report_new(bugs, bugdata, loader, tmpdir, subs): if __name__ == '__main__': options = parse_commandline() - bz = bugzilla.Bugzilla(url=options.url) + bz = bugzilla.Bugzilla(url=options.url, cookiefile=None) (bugs, bugdata) = run_query(bz) # Don't bother running this stuff until the query completes, since it fails