Skip to content

Commit 1ed5443

Browse files
authored
bpo-41898: add caveat on root logger seeing all messages in assertLogs doc (pythonGH-22526)
1 parent e799aa8 commit 1ed5443

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/unittest.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,8 @@ Test cases
10911091

10921092
If given, *logger* should be a :class:`logging.Logger` object or a
10931093
:class:`str` giving the name of a logger. The default is the root
1094-
logger, which will catch all messages.
1094+
logger, which will catch all messages that were not blocked by a
1095+
non-propagating descendent logger.
10951096

10961097
If given, *level* should be either a numeric logging level or
10971098
its string equivalent (for example either ``"ERROR"`` or

0 commit comments

Comments
 (0)