Skip to content

Commit 8cd48b6

Browse files
Clarify a guarantee of the logging module. (GH-19132)
When no additional arguments are passed to logging.debug() and related methods, no % operation is performed on the passed in message. (cherry picked from commit 9b8e74c) Co-authored-by: Gregory P. Smith <[email protected]>
1 parent e97c8b0 commit 8cd48b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Doc/library/logging.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ is the module's name in the Python package namespace.
159159
message format string, and the *args* are the arguments which are merged into
160160
*msg* using the string formatting operator. (Note that this means that you can
161161
use keywords in the format string, together with a single dictionary argument.)
162+
No % formatting operation is performed on *msg* when no *args* are supplied.
162163

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

0 commit comments

Comments
 (0)