]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Clarify a guarantee of the logging module. (GH-19132)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 24 Mar 2020 16:54:40 +0000 (09:54 -0700)
committerGitHub <noreply@github.com>
Tue, 24 Mar 2020 16:54:40 +0000 (09:54 -0700)
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 9b8e74ca77da7167033917d155e5f55c67b92f14)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Doc/library/logging.rst

index 4da5778fa641657a0c25dc3028b82056befff8b0..14e7190cbb0fe220025c13ff8da48eb40c8f3254 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*.