From 48c674701dd34fcaf9a4eecc13623025a5edd00f Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Thu, 23 Jan 2014 16:30:10 -0800 Subject: [PATCH] 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 --- elastic_recheck/loader.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/elastic_recheck/loader.py b/elastic_recheck/loader.py index dd80d223..fb3a8e2c 100644 --- a/elastic_recheck/loader.py +++ b/elastic_recheck/loader.py @@ -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