Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6802964

Browse files
Updated documentation on logging.debug(). (GH-9946) (GH-9949)
(cherry picked from commit bbd90e4) Co-authored-by: Vinay Sajip <[email protected]>
1 parent 5b9b935 commit 6802964

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/logging.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -931,8 +931,8 @@ functions.
931931
There are three keyword arguments in *kwargs* which are inspected: *exc_info*
932932
which, if it does not evaluate as false, causes exception information to be
933933
added to the logging message. If an exception tuple (in the format returned by
934-
:func:`sys.exc_info`) is provided, it is used; otherwise, :func:`sys.exc_info`
935-
is called to get the exception information.
934+
:func:`sys.exc_info`) or an exception instance is provided, it is used;
935+
otherwise, :func:`sys.exc_info` is called to get the exception information.
936936

937937
The second optional keyword argument is *stack_info*, which defaults to
938938
``False``. If true, stack information is added to the logging

0 commit comments

Comments
 (0)