diff options
author | Guido van Rossum <guido@python.org> | 2016-10-13 20:57:17 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2016-10-13 20:57:17 (GMT) |
commit | a03b1ea4113f2d7fcdecdbb7209a15ac30b25429 (patch) | |
tree | ef2e5b5b8ed28117c53c1f2a7787e3eeaf6c5f0c | |
parent | 5cade88ac1cf9241a8052c68646beac08aaa718e (diff) | |
parent | ba29a4fd8253c7d18f1ea93bad642e1569c939ef (diff) | |
download | cpython-a03b1ea4113f2d7fcdecdbb7209a15ac30b25429.zip cpython-a03b1ea4113f2d7fcdecdbb7209a15ac30b25429.tar.gz cpython-a03b1ea4113f2d7fcdecdbb7209a15ac30b25429.tar.bz2 |
Issue #21443: Show how to change log level for asyncio. (Merge 3.5->3.6)
-rw-r--r-- | Doc/library/asyncio-dev.rst | 8 |
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: |