提交 accb6ed8 编写于 作者: P Pablo Hoffman

dump stats to log by default (ie. change default value of STATS_DUMP to True)

上级 315457c2
......@@ -905,11 +905,13 @@ or subclass the StatsCollector class).
STATS_DUMP
----------
Default: ``False``
Default: ``True``
Dump (to the Scrapy log) the :ref:`Scrapy stats <topics-stats>` collected
during the crawl. The spider-specific stats are logged when the spider is
closed, while the global stats are dumped when the Scrapy process finishes.
Dump (to log) domain-specific stats collected when a domain is closed, and all
global stats when the Scrapy process finishes (ie. when the engine is
shutdown).
For more info see: :ref:`topics-stats`.
.. setting:: STATS_ENABLED
......
......@@ -246,7 +246,7 @@ SQS_REGION = 'us-east-1'
STATS_CLASS = 'scrapy.statscol.MemoryStatsCollector'
STATS_ENABLED = True
STATS_DUMP = False
STATS_DUMP = True
STATS_SDB_DOMAIN = 'scrapy_stats'
STATS_SDB_ASYNC = False
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册