From 73f77280aebd1794bb34d04207d52bdffd66a43a Mon Sep 17 00:00:00 2001 From: Julia Medina Date: Thu, 29 Jan 2015 11:31:44 -0300 Subject: [PATCH] Fix incorrect log call while generating articles --- newspaper/source.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/newspaper/source.py b/newspaper/source.py index 9cc7174b..c371511c 100644 --- a/newspaper/source.py +++ b/newspaper/source.py @@ -305,7 +305,8 @@ def generate_articles(self, limit=5000): """ articles = self._generate_articles() self.articles = articles[:limit] - log.debug(len(articles), 'articles generated and cutoff at', limit) + log.debug('%d articles generated and cutoff at %d', + len(articles), limit) def download_articles(self, threads=1): """Downloads all articles attached to self