Skip to content

Commit 72a7815

Browse files
GH-65046: Fix docs about logging in asyncio (GH-97559)
Explain that logging should not use network I/O. (cherry picked from commit d68c37c) Co-authored-by: Kumar Aditya <[email protected]>
1 parent 00c3524 commit 72a7815

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)