1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-28 12:44:38 +00:00

disable logging for scrapy check

This commit is contained in:
Alex Cepoi 2013-07-08 17:40:03 +02:00
parent 919d7c4062
commit f3d8b0802a
2 changed files with 4 additions and 2 deletions

View File

@ -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>"

View File

@ -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()