]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Clarify a guarantee of the logging module. (GH-19132)
authorGregory P. Smith <greg@krypto.org>
Tue, 24 Mar 2020 16:48:32 +0000 (09:48 -0700)
committerGitHub <noreply@github.com>
Tue, 24 Mar 2020 16:48:32 +0000 (09:48 -0700)
When no additional arguments are passed to logging.debug() and related
methods, no % operation is performed on the passed in message.

Doc/library/logging.rst

index 3b414ad30272cc82e7b5a1072b452b21af9c66b4..e943011c8afd8437178054b19ec9815ccf6cfc56 100644 (file)
@@ -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*.