Improve logging of fetching errors
parent
d5269964fc
commit
149117029c
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue