]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add minor clarification in logging documentation. (GH-22167)
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Wed, 9 Sep 2020 10:21:22 +0000 (11:21 +0100)
committerGitHub <noreply@github.com>
Wed, 9 Sep 2020 10:21:22 +0000 (11:21 +0100)
Doc/library/logging.rst

index 19691d50937a71fc4eb46868fa809304dfc8cb19..989016e649d651996612466f9f2269f8cc910a15 100644 (file)
@@ -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.