GH-65046: Fix docs about logging in `asyncio` (#97559)

Explain that logging should not use network I/O.
This commit is contained in:
Kumar Aditya 2022-09-27 03:57:15 +05:30 committed by GitHub
parent d79dd929ac
commit d68c37c0d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -148,6 +148,10 @@ adjusted::
logging.getLogger("asyncio").setLevel(logging.WARNING)
Network logging can block the event loop. It is recommended to use
a separate thread for handling logs or use non-blocking IO.
.. _asyncio-coroutine-not-scheduled:
Detect never-awaited coroutines