mirror of https://github.com/scrapy/scrapy.git
update log demo print
This commit is contained in:
parent
0c77b6d033
commit
d8e62e660d
|
|
@ -97,7 +97,7 @@ But this will::
|
|||
print "the argument passed is:", somearg
|
||||
|
||||
If you wish to log the requests that couldn't be serialized, you can set the
|
||||
``SCHEDULER_DEBUG`` setting to ``True`` in the project's settings page.
|
||||
:setting:`SCHEDULER_DEBUG` setting to ``True`` in the project's settings page.
|
||||
It is ``False`` by default.
|
||||
|
||||
.. _pickle: http://docs.python.org/library/pickle.html
|
||||
|
|
|
|||
|
|
@ -1034,14 +1034,15 @@ SCHEDULER_DEBUG
|
|||
Default: ``False``
|
||||
|
||||
Setting to ``True`` will log debug information about the requests scheduler.
|
||||
This currently logs(only once) if the requests cannot be serialized to disk.
|
||||
This currently logs (only once) if the requests cannot be serialized to disk.
|
||||
Stats counter (``scheduler/unserializable``) tracks the number of times this happens.
|
||||
|
||||
Example entry in logs::
|
||||
|
||||
1956-01-31 00:00:00+0800 [scrapy] ERROR: Unable to serialize request: <request>
|
||||
- reason: <exception> - no more unserializable requests will be logged (stats being
|
||||
collected)
|
||||
1956-01-31 00:00:00+0800 [scrapy] ERROR: Unable to serialize request:
|
||||
<GET http://example.com> - reason: cannot serialize <Request at 0x9a7c7ec>
|
||||
(type Request)> - no more unserializable requests will be logged
|
||||
(see 'scheduler/unserializable' stats counter)
|
||||
|
||||
.. setting:: SPIDER_CONTRACTS
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue