1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-24 00:04:09 +00:00

Log warning when request cannot be serialized (instead of error)

Fixes GH-2035
This commit is contained in:
Paul Tremberth 2016-09-20 12:47:33 +02:00
parent eb49b459c1
commit a135dbaf19

View File

@ -89,8 +89,8 @@ class Scheduler(object):
msg = ("Unable to serialize request: %(request)s - reason:"
" %(reason)s - no more unserializable requests will be"
" logged (stats being collected)")
logger.error(msg, {'request': request, 'reason': e},
exc_info=True, extra={'spider': self.spider})
logger.warning(msg, {'request': request, 'reason': e},
exc_info=True, extra={'spider': self.spider})
self.logunser = False
self.stats.inc_value('scheduler/unserializable',
spider=self.spider)