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