Stop logging skipped bugs

As we continue to use  elastic-recheck the number of skipped bugs will
continue to grow, and we reload bugs every time we attempt to classify a
bug so the logs get spammed with fairly useless comments about skipping
bugs.

Change-Id: I35bda3326379a77d1048f11cfd80ba8af8d05eaa
This commit is contained in:
Joe Gordon 2014-01-23 16:30:10 -08:00
parent 49c5f15e84
commit 48c674701d
1 changed files with 1 additions and 4 deletions

View File

@ -33,9 +33,6 @@ def load(directory='queries', skip_resolved=True):
bugnum = os.path.basename(fname).rstrip('.yaml')
query = yaml.load(open(fname).read())
query['bug'] = bugnum
if skip_resolved and 'resolved_at' in query:
LOG.debug('Skipping Bug : %s as it was resolved at %s'
% (query['bug'], query['resolved_at']))
else:
if not (skip_resolved and 'resolved_at' in query):
data.append(query)
return data