1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-21 07:32:44 +00:00

Log asyncio support on spider start.

This commit is contained in:
Andrey Rakhmatullin 2019-08-21 17:16:33 +05:00
parent b04b541372
commit 2fbe7d49dc

View File

@ -11,6 +11,7 @@ from twisted.python import log as twisted_log
import scrapy
from scrapy.settings import Settings
from scrapy.exceptions import ScrapyDeprecationWarning
from scrapy.utils.asyncio import is_asyncio_supported
from scrapy.utils.versions import scrapy_components_versions
@ -148,6 +149,8 @@ def log_scrapy_info(settings):
{'versions': ", ".join("%s %s" % (name, version)
for name, version in scrapy_components_versions()
if name != "Scrapy")})
if is_asyncio_supported():
logger.debug("Asyncio support enabled")
class StreamLogger(object):