]> granicus.if.org Git - python/commitdiff
Updated documentation on logging.debug(). (GH-9946)
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Thu, 18 Oct 2018 10:45:58 +0000 (11:45 +0100)
committerGitHub <noreply@github.com>
Thu, 18 Oct 2018 10:45:58 +0000 (11:45 +0100)
Doc/library/logging.rst

index 71a46ac7f20ac94aea08c92e44388802e0d46065..3a3428aa20e93564268a15dce2ab12d9356c82db 100644 (file)
@@ -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