From a8d430b4ddd5e4cda41065eac3f12b9a459f7876 Mon Sep 17 00:00:00 2001 From: daniel Date: Mon, 15 Jun 2009 12:35:42 -0300 Subject: [PATCH] httpcache: add domain to logging message --- scrapy/contrib/downloadermiddleware/httpcache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapy/contrib/downloadermiddleware/httpcache.py b/scrapy/contrib/downloadermiddleware/httpcache.py index e914b0aee..1f1738d39 100644 --- a/scrapy/contrib/downloadermiddleware/httpcache.py +++ b/scrapy/contrib/downloadermiddleware/httpcache.py @@ -117,7 +117,7 @@ class Cache(object): if expiration_secs >= 0: expiration_date = metadata['timestamp'] + datetime.timedelta(seconds=expiration_secs) if datetime.datetime.utcnow() > expiration_date: - log.msg('dropping old cached response from %s' % metadata['timestamp'], level=log.DEBUG) + log.msg('dropping old cached response from %s' % metadata['timestamp'], level=log.DEBUG, domain=domain) return None return metadata