diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-09-26 22:37:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-26 22:37:38 (GMT) |
commit | 72a78152f3f51716e7eae5a345007c16efb17ee2 (patch) | |
tree | b4147933e270db431ebe3e5dcd5a3ddda68576ea /Doc | |
parent | 00c352404a2f57f16a0b0d02eef5bdf1a1bd169f (diff) | |
download | cpython-72a78152f3f51716e7eae5a345007c16efb17ee2.zip cpython-72a78152f3f51716e7eae5a345007c16efb17ee2.tar.gz cpython-72a78152f3f51716e7eae5a345007c16efb17ee2.tar.bz2 |
GH-65046: Fix docs about logging in `asyncio` (GH-97559)
Explain that logging should not use network I/O.
(cherry picked from commit d68c37c0d08542a346a13b150a204208bb0408f5)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/asyncio-dev.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/asyncio-dev.rst b/Doc/library/asyncio-dev.rst index 02a0003..aed312b 100644 --- a/Doc/library/asyncio-dev.rst +++ b/Doc/library/asyncio-dev.rst @@ -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 |