[Python-checkins] Updated documentation on logging.debug(). (GH-9946)

Vinay Sajip webhook-mailer at python.org
Thu Oct 18 06:46:02 EDT 2018


https://github.com/python/cpython/commit/bbd90e4f6273f1c29c03ab1374fdbd1a862fc14a
commit: bbd90e4f6273f1c29c03ab1374fdbd1a862fc14a
branch: master
author: Vinay Sajip <vinay_sajip at yahoo.co.uk>
committer: GitHub <noreply at github.com>
date: 2018-10-18T11:45:58+01:00
summary:

Updated documentation on logging.debug(). (GH-9946)

files:
M Doc/library/logging.rst

diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index 71a46ac7f20a..3a3428aa20e9 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -953,8 +953,8 @@ functions.
    There are three keyword arguments in *kwargs* which are inspected: *exc_info*
    which, if it does not evaluate as false, causes exception information to be
    added to the logging message. If an exception tuple (in the format returned by
-   :func:`sys.exc_info`) is provided, it is used; otherwise, :func:`sys.exc_info`
-   is called to get the exception information.
+   :func:`sys.exc_info`) or an exception instance is provided, it is used;
+   otherwise, :func:`sys.exc_info` is called to get the exception information.
 
    The second optional keyword argument is *stack_info*, which defaults to
    ``False``. If true, stack information is added to the logging



More information about the Python-checkins mailing list