summaryrefslogtreecommitdiffstats
path: root/Doc/library/asyncio-dev.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-08-25 15:04:12 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-08-25 15:04:12 (GMT)
commitd71dcbb043578c0abe770a2f37fac36e1a402821 (patch)
tree904d633e91d2dcf19c91d03e1bb6ac39e2635433 /Doc/library/asyncio-dev.rst
parent8e16351545947fa1d083f8ea02b7b89415f71bc6 (diff)
downloadcpython-d71dcbb043578c0abe770a2f37fac36e1a402821.zip
cpython-d71dcbb043578c0abe770a2f37fac36e1a402821.tar.gz
cpython-d71dcbb043578c0abe770a2f37fac36e1a402821.tar.bz2
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
Diffstat (limited to 'Doc/library/asyncio-dev.rst')
-rw-r--r--Doc/library/asyncio-dev.rst10
1 files changed, 9 insertions, 1 deletions
diff --git a/Doc/library/asyncio-dev.rst b/Doc/library/asyncio-dev.rst
index bf68121..b797d6a 100644
--- a/Doc/library/asyncio-dev.rst
+++ b/Doc/library/asyncio-dev.rst
@@ -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>`