From ba29a4fd8253c7d18f1ea93bad642e1569c939ef Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 13 Oct 2016 13:56:40 -0700 Subject: [PATCH] Issue #21443: Show how to change log level for asyncio. --- Doc/library/asyncio-dev.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Doc/library/asyncio-dev.rst b/Doc/library/asyncio-dev.rst index e9ec6382116..cc4a14b2016 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: