[Python-checkins] gh-92417: `logging` docs: Remove warning that only applies to Python <3.2 (#92425)

JelleZijlstra webhook-mailer at python.org
Sun May 8 11:36:42 EDT 2022


https://github.com/python/cpython/commit/318c4e91ef166bcd5d513bb42b9156d54d423d4a
commit: 318c4e91ef166bcd5d513bb42b9156d54d423d4a
branch: main
author: Alex Waygood <Alex.Waygood at Gmail.com>
committer: JelleZijlstra <jelle.zijlstra at gmail.com>
date: 2022-05-08T08:36:38-07:00
summary:

gh-92417: `logging` docs: Remove warning that only applies to Python <3.2 (#92425)

files:
M Doc/library/logging.rst

diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index ea6494f219ae7..b82b90b47dd16 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -1080,16 +1080,6 @@ functions.
    Logs a message with level *level* on the root logger. The other arguments are
    interpreted as for :func:`debug`.
 
-   .. note:: The above module-level convenience functions, which delegate to the
-      root logger, call :func:`basicConfig` to ensure that at least one handler
-      is available. Because of this, they should *not* be used in threads,
-      in versions of Python earlier than 2.7.1 and 3.2, unless at least one
-      handler has been added to the root logger *before* the threads are
-      started. In earlier versions of Python, due to a thread safety shortcoming
-      in :func:`basicConfig`, this can (under rare circumstances) lead to
-      handlers being added multiple times to the root logger, which can in turn
-      lead to multiple messages for the same event.
-
 .. function:: disable(level=CRITICAL)
 
    Provides an overriding level *level* for all loggers which takes precedence over



More information about the Python-checkins mailing list