MCPcopy
hub / github.com/scrapy/scrapy / start

Method start

tests/test_crawler.py:523–534  ·  tests/test_crawler.py::TestCrawlerLogging.MySpider.start
(self)

Source from the content-addressed store, hash-verified

521 }
522
523 async def start(self):
524 info_count_start = crawler.stats.get_value(class="st">"log_count/INFO")
525 logging.debug(class="st">"debug message") class="cm"># noqa: LOG015
526 logging.info(class="st">"info message") class="cm"># noqa: LOG015
527 logging.warning(class="st">"warning message") class="cm"># noqa: LOG015
528 logging.error(class="st">"error message") class="cm"># noqa: LOG015
529 nonlocal info_count
530 info_count = (
531 crawler.stats.get_value(class="st">"log_count/INFO") - info_count_start
532 )
533 return
534 yield
535
536 try:
537 configure_logging()

Callers

nothing calls this directly

Calls 3

infoMethod · 0.80
errorMethod · 0.80
get_valueMethod · 0.45

Tested by

no test coverage detected