diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2020-09-09 10:21:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-09 10:21:22 (GMT) |
commit | 76553e5d2eae3e8a47406a6de4f354fe33ff370b (patch) | |
tree | 0e4656376e5f0bc95d323a437388817452619b59 /Doc/library/logging.rst | |
parent | 640e8e1d5f61d5868453d992da04bf4741327748 (diff) | |
download | cpython-76553e5d2eae3e8a47406a6de4f354fe33ff370b.zip cpython-76553e5d2eae3e8a47406a6de4f354fe33ff370b.tar.gz cpython-76553e5d2eae3e8a47406a6de4f354fe33ff370b.tar.bz2 |
Add minor clarification in logging documentation. (GH-22167)
Diffstat (limited to 'Doc/library/logging.rst')
-rw-r--r-- | Doc/library/logging.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 19691d5..989016e 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. |