[Python-checkins] Clarify a guarantee of the logging module. (GH-19132)

Miss Islington (bot) webhook-mailer at python.org
Tue Mar 24 12:54:47 EDT 2020


https://github.com/python/cpython/commit/8cd48b60fde147087dca061e836c1a47156ac612
commit: 8cd48b60fde147087dca061e836c1a47156ac612
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-03-24T09:54:40-07:00
summary:

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 9b8e74ca77da7167033917d155e5f55c67b92f14)

Co-authored-by: Gregory P. Smith <greg at krypto.org>

files:
M Doc/library/logging.rst

diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index 4da5778fa6416..14e7190cbb0fe 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -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*.



More information about the Python-checkins mailing list