1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-24 07:24:12 +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,7 +89,7 @@ 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},
logger.warning(msg, {'request': request, 'reason': e},
exc_info=True, extra={'spider': self.spider})
self.logunser = False
self.stats.inc_value('scheduler/unserializable',