Skip to content

Commit d173e5b

Browse files
committed
Address comments from @vsajip
1 parent d0ce087 commit d173e5b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Doc/library/logging.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,9 @@ is the module's name in the Python package namespace.
242242
above example). In such circumstances, it is likely that specialized
243243
:class:`Formatter`\ s would be used with particular :class:`Handler`\ s.
244244

245-
If no handler is attached to this logger (or its parents if
246-
:attr:`Logger.propagate` evaluates to true), the message will be sent to
247-
the handler set on :attr:`lastResort`.
245+
If no handler is attached to this logger (or any of its ancestors,
246+
taking into account the relevant :attr:`Logger.propagate` attributes),
247+
the message will be sent to the handler set on :attr:`lastResort`.
248248

249249
.. versionchanged:: 3.2
250250
The *stack_info* parameter was added.
@@ -1042,8 +1042,9 @@ functions.
10421042
above example). In such circumstances, it is likely that specialized
10431043
:class:`Formatter`\ s would be used with particular :class:`Handler`\ s.
10441044

1045-
The function will call :func:`basicConfig` if the root logger doesn't have
1046-
any handler attached.
1045+
This function (as well as :func:`info`, :func:`warning`, :func:`error` and
1046+
:func:`critical`) will call :func:`basicConfig` if the root logger doesn't
1047+
have any handler attached.
10471048

10481049
.. versionchanged:: 3.2
10491050
The *stack_info* parameter was added.

0 commit comments

Comments
 (0)