Skip to content

Commit

Permalink
gh-65046: Link to logging cookbook from asyncio docs (GH-98207)
Browse files Browse the repository at this point in the history
(cherry picked from commit c39a0c3)

Co-authored-by: Shantanu <[email protected]>
  • Loading branch information
2 people authored and pablogsal committed Oct 22, 2022
1 parent b636023 commit 168ec08
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Doc/howto/logging-cookbook.rst
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,8 @@ configuration::
print('complete')


.. _blocking-handlers:

Dealing with handlers that block
--------------------------------

Expand Down
5 changes: 5 additions & 0 deletions Doc/library/asyncio-dev.rst
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ 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. For example,
see :ref:`blocking-handlers`.


.. _asyncio-coroutine-not-scheduled:

Detect never-awaited coroutines
Expand Down

0 comments on commit 168ec08

Please sign in to comment.