diff options
author | Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> | 2022-09-26 22:27:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-26 22:27:15 (GMT) |
commit | d68c37c0d08542a346a13b150a204208bb0408f5 (patch) | |
tree | 280184e975f0e6b5f07208876e5b53a27e356bac | |
parent | d79dd929accac13832bc13ed12be34466584ca81 (diff) | |
download | cpython-d68c37c0d08542a346a13b150a204208bb0408f5.zip cpython-d68c37c0d08542a346a13b150a204208bb0408f5.tar.gz cpython-d68c37c0d08542a346a13b150a204208bb0408f5.tar.bz2 |
GH-65046: Fix docs about logging in `asyncio` (#97559)
Explain that logging should not use network I/O.
-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 77f1128..9676a35 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 |