Skip to content

Commit

Permalink
pythonGH-65046: Fix docs about logging in asyncio (python#97559)
Browse files Browse the repository at this point in the history
Explain that logging should not use network I/O.
  • Loading branch information
kumaraditya303 authored Sep 26, 2022
1 parent d79dd92 commit d68c37c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Doc/library/asyncio-dev.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d68c37c

Please sign in to comment.