summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2022-09-26 22:27:15 (GMT)
committerGitHub <noreply@github.com>2022-09-26 22:27:15 (GMT)
commitd68c37c0d08542a346a13b150a204208bb0408f5 (patch)
tree280184e975f0e6b5f07208876e5b53a27e356bac
parentd79dd929accac13832bc13ed12be34466584ca81 (diff)
downloadcpython-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.rst4
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