Skip to content

Commit d68c37c

Browse files
GH-65046: Fix docs about logging in asyncio (#97559)
Explain that logging should not use network I/O.
1 parent d79dd92 commit d68c37c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/library/asyncio-dev.rst

+4
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ 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.
153+
154+
151155
.. _asyncio-coroutine-not-scheduled:
152156

153157
Detect never-awaited coroutines

0 commit comments

Comments
 (0)