Scrapy, a fast high-level web crawling & scraping framework for Python.
httpcache: add domain to logging message
daniela8d430b4ddd5
diff --git a/scrapy/contrib/downloadermiddleware/httpcache.py b/scrapy/contrib/downloadermiddleware/httpcache.pyindex 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 Nonereturn metadata