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

Explain that logging should not use network I/O.
(cherry picked from commit d68c37c0d0)

Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2022-09-26 15:37:38 -07:00 committed by GitHub
parent 00c352404a
commit 72a78152f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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