From e2e504aac4b74d875da34b04f06b5409103d78e1 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Sat, 14 Oct 2017 19:33:21 -0400 Subject: log number of each type of article fetched --- unbiased/sources/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/unbiased/sources/base.py b/unbiased/sources/base.py index 14d867e..861d7f4 100644 --- a/unbiased/sources/base.py +++ b/unbiased/sources/base.py @@ -50,6 +50,7 @@ class NewsSource(object): @classmethod def build(cls): h1s, h2s, h3s = cls._fetch_urls() + logger.debug('Fetched {} h1s, {} h2s, {} h3s'.format(len(h1s), len(h2s), len(h3s))) h1s = tuple(cls._normalize_url(x) for x in h1s) h2s = tuple(cls._normalize_url(x) for x in h2s) h3s = tuple(cls._normalize_url(x) for x in h3s) -- cgit v1.2.3