From b8b5b2fef274dc29c721f481363ccdb166ede3b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joel=20K=C3=A5berg?= Date: Fri, 14 Jun 2013 21:17:45 +0200 Subject: [PATCH] dont spam the log damnit! --- couchpotato/core/plugins/searcher/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/searcher/main.py b/couchpotato/core/plugins/searcher/main.py index 2fd80cef..98b60825 100644 --- a/couchpotato/core/plugins/searcher/main.py +++ b/couchpotato/core/plugins/searcher/main.py @@ -157,11 +157,12 @@ class Searcher(Plugin): fireEvent('notify.frontend', type = 'searcher.started.%s' % movie['id'], data = True, message = 'Searching for "%s"' % default_title) + no_quality_match = [] ret = False for quality_type in movie['profile']['types']: if not self.conf('always_search') and not self.couldBeReleased(quality_type['quality']['identifier'] in pre_releases, release_dates): - log.info('Too early to search for %s, %s', (quality_type['quality']['identifier'], default_title)) + no_quality_match.append(quality_type['quality']['identifier']) continue has_better_quality = 0 @@ -267,6 +268,7 @@ class Searcher(Plugin): # Break if CP wants to shut down if self.shuttingDown() or ret: break + log.info('Too early to search for %s, %s', (no_quality_match, default_title)) fireEvent('notify.frontend', type = 'searcher.ended.%s' % movie['id'], data = True)