summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Singleton <msingleton@aclu.org>2017-10-14 19:33:21 -0400
committerMatt Singleton <msingleton@aclu.org>2017-10-14 19:33:21 -0400
commite2e504aac4b74d875da34b04f06b5409103d78e1 (patch)
treed5c5614911ef0ec27bd1d56b07b8abd3ee4512b1
parent40842e8431a8c248c0d767c3b24a21d95bc136b4 (diff)
log number of each type of article fetched
-rw-r--r--unbiased/sources/base.py1
1 files changed, 1 insertions, 0 deletions
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)