From accb6ed8307054a6703a37bea20990119c1e166c Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Tue, 17 May 2011 22:42:05 -0300 Subject: [PATCH] dump stats to log by default (ie. change default value of STATS_DUMP to True) --- docs/topics/settings.rst | 10 ++++++---- scrapy/settings/default_settings.py | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/docs/topics/settings.rst b/docs/topics/settings.rst index 2a1d9aeb2..10d80008f 100644 --- a/docs/topics/settings.rst +++ b/docs/topics/settings.rst @@ -905,11 +905,13 @@ or subclass the StatsCollector class). STATS_DUMP ---------- -Default: ``False`` +Default: ``True`` -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). +Dump (to the Scrapy log) the :ref:`Scrapy 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. + +For more info see: :ref:`topics-stats`. .. setting:: STATS_ENABLED diff --git a/scrapy/settings/default_settings.py b/scrapy/settings/default_settings.py index 6a072b063..9ff886d1d 100644 --- a/scrapy/settings/default_settings.py +++ b/scrapy/settings/default_settings.py @@ -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