[Python-checkins] GH-65046: Fix docs about logging in `asyncio` (GH-97559)
miss-islington
webhook-mailer at python.org
Mon Sep 26 18:46:04 EDT 2022
https://github.com/python/cpython/commit/82932b3ec99955ff81080baf8b248210ab026454
commit: 82932b3ec99955ff81080baf8b248210ab026454
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-09-26T15:45:58-07:00
summary:
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 at users.noreply.github.com>
files:
M Doc/library/asyncio-dev.rst
diff --git a/Doc/library/asyncio-dev.rst b/Doc/library/asyncio-dev.rst
index 77f1128de50c..9676a352f4b2 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
More information about the Python-checkins
mailing list