mirror of https://github.com/scrapy/scrapy.git
Fixed error message formatting.
log.err() doesn't support cool formatting and when error occured, the message was: "ERROR: Error processing %(item)s"
This commit is contained in:
parent
ea0967562e
commit
8ea89b277c
|
|
@ -205,7 +205,7 @@ class Scraper(object):
|
|||
return self.signals.send_catch_log_deferred(signal=signals.item_dropped, \
|
||||
item=item, spider=spider, exception=output.value)
|
||||
else:
|
||||
log.err(output, 'Error processing %(item)s', item=item, spider=spider)
|
||||
log.err(output, 'Error processing %s' % item, spider=spider)
|
||||
else:
|
||||
logkws = self.logformatter.scraped(output, response, spider)
|
||||
log.msg(spider=spider, **logkws)
|
||||
|
|
|
|||
Loading…
Reference in New Issue