summaryrefslogtreecommitdiffstats
path: root/Doc/library/asyncio-dev.rst
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2016-10-13 20:56:40 (GMT)
committerGuido van Rossum <guido@python.org>2016-10-13 20:56:40 (GMT)
commitba29a4fd8253c7d18f1ea93bad642e1569c939ef (patch)
treedb0ebef08962c5cc91b266306a61566903b70b32 /Doc/library/asyncio-dev.rst
parentb1a751b5c25b1969430197a6f5a58f49c1947eff (diff)
downloadcpython-ba29a4fd8253c7d18f1ea93bad642e1569c939ef.zip
cpython-ba29a4fd8253c7d18f1ea93bad642e1569c939ef.tar.gz
cpython-ba29a4fd8253c7d18f1ea93bad642e1569c939ef.tar.bz2
Issue #21443: Show how to change log level for asyncio.
Diffstat (limited to 'Doc/library/asyncio-dev.rst')
-rw-r--r--Doc/library/asyncio-dev.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/library/asyncio-dev.rst b/Doc/library/asyncio-dev.rst
index e9ec638..cc4a14b 100644
--- a/Doc/library/asyncio-dev.rst
+++ b/Doc/library/asyncio-dev.rst
@@ -161,6 +161,14 @@ Logging
The :mod:`asyncio` module logs information with the :mod:`logging` module in
the logger ``'asyncio'``.
+The default log level for the :mod:`asyncio` module is :py:data:`logging.INFO`.
+For those not wanting such verbosity from :mod:`asyncio` the log level can
+be changed. For example, to change the level to :py:data:`logging.WARNING`:
+
+.. code-block:: none
+
+ logging.getLogger('asyncio').setLevel(logging.WARNING)
+
.. _asyncio-coroutine-not-scheduled: