]> granicus.if.org Git - python/commitdiff
Issue #21443: Show how to change log level for asyncio.
authorGuido van Rossum <guido@python.org>
Thu, 13 Oct 2016 20:56:40 +0000 (13:56 -0700)
committerGuido van Rossum <guido@python.org>
Thu, 13 Oct 2016 20:56:40 +0000 (13:56 -0700)
Doc/library/asyncio-dev.rst

index e9ec6382116348b6e650dabbc0b729e481104f1a..cc4a14b2016226cc90d717e8f2c65f686dd35a60 100644 (file)
@@ -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: