]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Updated documentation on logging.debug(). (GH-9946) (GH-9950)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 18 Oct 2018 10:55:33 +0000 (03:55 -0700)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Thu, 18 Oct 2018 10:55:33 +0000 (11:55 +0100)
(cherry picked from commit bbd90e4f6273f1c29c03ab1374fdbd1a862fc14a)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Doc/library/logging.rst

index 590d55689d8a7e7f0ca0485c52e5734fa86ef45d..60d7758896a727c8efbaea559b6ddf0769bda41b 100644 (file)
@@ -931,8 +931,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