mirror of
https://github.com/python/cpython.git
synced 2025-10-03 21:55:41 +00:00
gh-65046: Link to logging cookbook from asyncio docs (GH-98207)
(cherry picked from commit c39a0c3354
)
Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
This commit is contained in:
parent
b63602303e
commit
168ec080e8
2 changed files with 7 additions and 0 deletions
|
@ -537,6 +537,8 @@ configuration::
|
||||||
print('complete')
|
print('complete')
|
||||||
|
|
||||||
|
|
||||||
|
.. _blocking-handlers:
|
||||||
|
|
||||||
Dealing with handlers that block
|
Dealing with handlers that block
|
||||||
--------------------------------
|
--------------------------------
|
||||||
|
|
||||||
|
|
|
@ -148,6 +148,11 @@ adjusted::
|
||||||
logging.getLogger("asyncio").setLevel(logging.WARNING)
|
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. For example,
|
||||||
|
see :ref:`blocking-handlers`.
|
||||||
|
|
||||||
|
|
||||||
.. _asyncio-coroutine-not-scheduled:
|
.. _asyncio-coroutine-not-scheduled:
|
||||||
|
|
||||||
Detect never-awaited coroutines
|
Detect never-awaited coroutines
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue