Skip to content

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

disable logging for scrapy check

Alex Cepoif3d8b0802a6f
diff --git a/scrapy/commands/check.py b/scrapy/commands/check.py
index a479600eb..297f59b3a 100644
--- a/scrapy/commands/check.py
+++ b/scrapy/commands/check.py
@@ -21,7 +21,7 @@ def _generate(cb):
class Command(ScrapyCommand):
requires_project = True
multi_crawlers = True
- default_settings = {'LOG_ENABLED': True}
+ default_settings = {'LOG_ENABLED': False}
def syntax(self):
return "[options] <spider>"
diff --git a/scrapy/crawler.py b/scrapy/crawler.py
index c88e1641d..4c650c41c 100644
--- a/scrapy/crawler.py
+++ b/scrapy/crawler.py
@@ -153,7 +153,9 @@ class MultiCrawlerProcess(ProcessMixin):
name, crawler = self.crawlers.popitem()
crawler.sflo = log.start_from_crawler(crawler)
- crawler.signals.connect(crawler.sflo.stop, signals.engine_stopped)
+ if crawler.sflo:
+ crawler.signals.connect(crawler.sflo.stop, signals.engine_stopped)
+
crawler.signals.connect(self.check_done, signals.engine_stopped)
crawler.start()