mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
asyncio: update the doc
* dev: mention that the logging must be configured at DEBUG level * streams: drain() has no more a strange return value, it's just a standard coroutine
This commit is contained in:
parent
8e16351545
commit
d71dcbb043
2 changed files with 15 additions and 8 deletions
|
@ -15,7 +15,15 @@ Debug mode of asyncio
|
|||
---------------------
|
||||
|
||||
To enable the debug mode globally, set the environment variable
|
||||
:envvar:`PYTHONASYNCIODEBUG` to ``1``. Examples of effects of the debug mode:
|
||||
:envvar:`PYTHONASYNCIODEBUG` to ``1``. To see debug traces, set the log level
|
||||
of the :ref:`asyncio logger <asyncio-logger>` to :py:data:`logging.DEBUG`. The
|
||||
simplest configuration is::
|
||||
|
||||
import logging
|
||||
# ...
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
|
||||
Examples of effects of the debug mode:
|
||||
|
||||
* Log :ref:`coroutines defined but never "yielded from"
|
||||
<asyncio-coroutine-not-scheduled>`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue