Improve logging of fetching errors

master
pictuga 2015-02-21 01:58:45 +08:00
parent d5269964fc
commit 149117029c
1 changed files with 2 additions and 2 deletions

View File

@ -357,7 +357,7 @@ def Fill(item, cache, options, feedurl='/', fast=False):
log('cached error: %s' % match.groups()[0]) log('cached error: %s' % match.groups()[0])
return True return True
else: else:
log('old error') log('ignored old error: %s' % match.groups()[0])
else: else:
log('cached') log('cached')
item.push_content(cache.get(link)) item.push_content(cache.get(link))
@ -389,7 +389,7 @@ def Fill(item, cache, options, feedurl='/', fast=False):
item.push_content(out) item.push_content(out)
cache.set(link, out) cache.set(link, out)
else: else:
log('not bigger enough') log('link not bigger enough')
cache.set(link, 'error-length') cache.set(link, 'error-length')
return True return True