mirror of
https://github.com/scrapy/scrapy.git
synced 2025-02-22 07:32:41 +00:00
Log asyncio support on spider start.
This commit is contained in:
parent
b04b541372
commit
2fbe7d49dc
@ -11,6 +11,7 @@ from twisted.python import log as twisted_log
|
|||||||
import scrapy
|
import scrapy
|
||||||
from scrapy.settings import Settings
|
from scrapy.settings import Settings
|
||||||
from scrapy.exceptions import ScrapyDeprecationWarning
|
from scrapy.exceptions import ScrapyDeprecationWarning
|
||||||
|
from scrapy.utils.asyncio import is_asyncio_supported
|
||||||
from scrapy.utils.versions import scrapy_components_versions
|
from scrapy.utils.versions import scrapy_components_versions
|
||||||
|
|
||||||
|
|
||||||
@ -148,6 +149,8 @@ def log_scrapy_info(settings):
|
|||||||
{'versions': ", ".join("%s %s" % (name, version)
|
{'versions': ", ".join("%s %s" % (name, version)
|
||||||
for name, version in scrapy_components_versions()
|
for name, version in scrapy_components_versions()
|
||||||
if name != "Scrapy")})
|
if name != "Scrapy")})
|
||||||
|
if is_asyncio_supported():
|
||||||
|
logger.debug("Asyncio support enabled")
|
||||||
|
|
||||||
|
|
||||||
class StreamLogger(object):
|
class StreamLogger(object):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user