[Python-checkins] gh-65046: Link to logging cookbook from asyncio docs (#98207)
gvanrossum
webhook-mailer at python.org
Wed Oct 12 00:43:07 EDT 2022
https://github.com/python/cpython/commit/c39a0c335486fa8eac0f3030930f9e8769118a4f
commit: c39a0c335486fa8eac0f3030930f9e8769118a4f
branch: main
author: Shantanu <12621235+hauntsaninja at users.noreply.github.com>
committer: gvanrossum <gvanrossum at gmail.com>
date: 2022-10-11T21:42:57-07:00
summary:
gh-65046: Link to logging cookbook from asyncio docs (#98207)
files:
M Doc/howto/logging-cookbook.rst
M Doc/library/asyncio-dev.rst
diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst
index 913502eba764..99e886c61b4c 100644
--- a/Doc/howto/logging-cookbook.rst
+++ b/Doc/howto/logging-cookbook.rst
@@ -332,6 +332,8 @@ configuration::
print('complete')
+.. _blocking-handlers:
+
Dealing with handlers that block
--------------------------------
diff --git a/Doc/library/asyncio-dev.rst b/Doc/library/asyncio-dev.rst
index 14f2c3533c97..921a394a59fe 100644
--- a/Doc/library/asyncio-dev.rst
+++ b/Doc/library/asyncio-dev.rst
@@ -149,7 +149,8 @@ adjusted::
Network logging can block the event loop. It is recommended to use
-a separate thread for handling logs or use non-blocking IO.
+a separate thread for handling logs or use non-blocking IO. For example,
+see :ref:`blocking-handlers`.
.. _asyncio-coroutine-not-scheduled:
More information about the Python-checkins
mailing list