Skip to content

Commit 580163d

Browse files
gh-92417: logging docs: Remove warning that only applies to Python <3.2 (GH-92425)
(cherry picked from commit 318c4e9) Co-authored-by: Alex Waygood <[email protected]>
1 parent baed0c3 commit 580163d

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

Doc/library/logging.rst

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,16 +1073,6 @@ functions.
10731073
Logs a message with level *level* on the root logger. The other arguments are
10741074
interpreted as for :func:`debug`.
10751075

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

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

0 commit comments

Comments
 (0)