Skip to content

Commit 318c4e9

Browse files
authored
gh-92417: logging docs: Remove warning that only applies to Python <3.2 (#92425)
1 parent 9d25db9 commit 318c4e9

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Doc/library/logging.rst

-10
Original file line numberDiff line numberDiff line change
@@ -1080,16 +1080,6 @@ functions.
10801080
Logs a message with level *level* on the root logger. The other arguments are
10811081
interpreted as for :func:`debug`.
10821082

1083-
.. note:: The above module-level convenience functions, which delegate to the
1084-
root logger, call :func:`basicConfig` to ensure that at least one handler
1085-
is available. Because of this, they should *not* be used in threads,
1086-
in versions of Python earlier than 2.7.1 and 3.2, unless at least one
1087-
handler has been added to the root logger *before* the threads are
1088-
started. In earlier versions of Python, due to a thread safety shortcoming
1089-
in :func:`basicConfig`, this can (under rare circumstances) lead to
1090-
handlers being added multiple times to the root logger, which can in turn
1091-
lead to multiple messages for the same event.
1092-
10931083
.. function:: disable(level=CRITICAL)
10941084

10951085
Provides an overriding level *level* for all loggers which takes precedence over

0 commit comments

Comments
 (0)