From 66f687dbfaa5ee50338157acf20e2ce9b1758b1e Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Mon, 23 Mar 2020 19:26:02 -0700 Subject: [PATCH] Clarify a guarantee of the logging module. 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 3b414ad30272cc..e943011c8afd84 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*.