Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

update log demo print

darshanimed8e62e660db2
diff --git a/docs/topics/jobs.rst b/docs/topics/jobs.rst
index 55105dcfd..4f9e38086 100644
--- a/docs/topics/jobs.rst
+++ b/docs/topics/jobs.rst
@@ -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
diff --git a/docs/topics/settings.rst b/docs/topics/settings.rst
index d14f230e4..e55c8bb4b 100644
--- a/docs/topics/settings.rst
+++ b/docs/topics/settings.rst
@@ -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