Skip to content

Commit 168ec08

Browse files
miss-islingtonhauntsaninja
authored andcommitted
gh-65046: Link to logging cookbook from asyncio docs (GH-98207)
(cherry picked from commit c39a0c3) Co-authored-by: Shantanu <[email protected]>
1 parent b636023 commit 168ec08

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Doc/howto/logging-cookbook.rst

+2
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,8 @@ configuration::
537537
print('complete')
538538

539539

540+
.. _blocking-handlers:
541+
540542
Dealing with handlers that block
541543
--------------------------------
542544

Doc/library/asyncio-dev.rst

+5
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ adjusted::
148148
logging.getLogger("asyncio").setLevel(logging.WARNING)
149149

150150

151+
Network logging can block the event loop. It is recommended to use
152+
a separate thread for handling logs or use non-blocking IO. For example,
153+
see :ref:`blocking-handlers`.
154+
155+
151156
.. _asyncio-coroutine-not-scheduled:
152157

153158
Detect never-awaited coroutines

0 commit comments

Comments
 (0)