[Python-checkins] Clarify a guarantee of the logging module. (GH-19132)
Gregory P. Smith
webhook-mailer at python.org
Tue Mar 24 12:48:39 EDT 2020
https://github.com/python/cpython/commit/9b8e74ca77da7167033917d155e5f55c67b92f14
commit: 9b8e74ca77da7167033917d155e5f55c67b92f14
branch: master
author: Gregory P. Smith <greg at krypto.org>
committer: GitHub <noreply at github.com>
date: 2020-03-24T09:48:32-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.
files:
M Doc/library/logging.rst
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index 3b414ad30272c..e943011c8afd8 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