Automated merge with ssh://hg.scrapy.org/scrapy

This commit is contained in:
daniel 2009-06-17 02:45:46 -03:00
commit d175ced4a1
1 changed files with 1 additions and 1 deletions

View File

@ -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