From: Guido van Rossum Date: Thu, 13 Oct 2016 20:56:40 +0000 (-0700) Subject: Issue #21443: Show how to change log level for asyncio. X-Git-Tag: v3.6.0b3~125^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba29a4fd8253c7d18f1ea93bad642e1569c939ef;p=thirdparty%2FPython%2Fcpython.git Issue #21443: Show how to change log level for asyncio. --- diff --git a/Doc/library/asyncio-dev.rst b/Doc/library/asyncio-dev.rst index e9ec63821163..cc4a14b20162 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: