[Python-checkins] Add minor clarification in logging documentation. (GH-22167)
Vinay Sajip
webhook-mailer at python.org
Tue Sep 15 09:41:56 EDT 2020
https://github.com/python/cpython/commit/76553e5d2eae3e8a47406a6de4f354fe33ff370b
commit: 76553e5d2eae3e8a47406a6de4f354fe33ff370b
branch: master
author: Vinay Sajip <vinay_sajip at yahoo.co.uk>
committer: GitHub <noreply at github.com>
date: 2020-09-09T11:21:22+01:00
summary:
Add minor clarification in logging documentation. (GH-22167)
files:
M Doc/library/logging.rst
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index 19691d50937a7..989016e649d65 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -575,9 +575,9 @@ The useful mapping keys in a :class:`LogRecord` are given in the section on
pickled and sent across the wire, but you should be careful if you have
more than one :class:`Formatter` subclass which customizes the formatting
of exception information. In this case, you will have to clear the cached
- value after a formatter has done its formatting, so that the next
- formatter to handle the event doesn't use the cached value but
- recalculates it afresh.
+ value (by setting the *exc_text* attribute to ``None``) after a formatter
+ has done its formatting, so that the next formatter to handle the event
+ doesn't use the cached value, but recalculates it afresh.
If stack information is available, it's appended after the exception
information, using :meth:`formatStack` to transform it if necessary.
More information about the Python-checkins
mailing list