Skip to content

Commit 76553e5

Browse files
authored
Add minor clarification in logging documentation. (GH-22167)
1 parent 640e8e1 commit 76553e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/logging.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -575,9 +575,9 @@ The useful mapping keys in a :class:`LogRecord` are given in the section on
575575
pickled and sent across the wire, but you should be careful if you have
576576
more than one :class:`Formatter` subclass which customizes the formatting
577577
of exception information. In this case, you will have to clear the cached
578-
value after a formatter has done its formatting, so that the next
579-
formatter to handle the event doesn't use the cached value but
580-
recalculates it afresh.
578+
value (by setting the *exc_text* attribute to ``None``) after a formatter
579+
has done its formatting, so that the next formatter to handle the event
580+
doesn't use the cached value, but recalculates it afresh.
581581

582582
If stack information is available, it's appended after the exception
583583
information, using :meth:`formatStack` to transform it if necessary.

0 commit comments

Comments
 (0)