diff options
author | Gregory P. Smith <greg@krypto.org> | 2020-03-24 16:48:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-24 16:48:32 (GMT) |
commit | 9b8e74ca77da7167033917d155e5f55c67b92f14 (patch) | |
tree | 7fa55d7fba9ada4331235e09852b007b30f7a694 | |
parent | 5804f878e779712e803be927ca8a6df389d82cdf (diff) | |
download | cpython-9b8e74ca77da7167033917d155e5f55c67b92f14.zip cpython-9b8e74ca77da7167033917d155e5f55c67b92f14.tar.gz cpython-9b8e74ca77da7167033917d155e5f55c67b92f14.tar.bz2 |
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.
-rw-r--r-- | Doc/library/logging.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 3b414ad..e943011 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*. |