Skip to content

Commit

Permalink
Clarify a guarantee of the logging module. (GH-19132)
Browse files Browse the repository at this point in the history
When no additional arguments are passed to logging.debug() and related
methods, no % operation is performed on the passed in message.
  • Loading branch information
gpshead committed Mar 24, 2020
1 parent 5804f87 commit 9b8e74c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Doc/library/logging.rst
Expand Up @@ -159,6 +159,7 @@ is the module's name in the Python package namespace.
message format string, and the *args* are the arguments which are merged into
*msg* using the string formatting operator. (Note that this means that you can
use keywords in the format string, together with a single dictionary argument.)
No % formatting operation is performed on *msg* when no *args* are supplied.

There are four keyword arguments in *kwargs* which are inspected:
*exc_info*, *stack_info*, *stacklevel* and *extra*.
Expand Down

0 comments on commit 9b8e74c

Please sign in to comment.