This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vinay.sajip
Recipients hyamanieu, vinay.sajip
Date 2021-07-12.05:39:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1626068368.53.0.661480226189.issue44599@roundup.psfhosted.org>
In-reply-to
Content
> It looks like an unexpected behavior to me when reading the doc.

Perhaps you missed this?

https://docs.python.org/3/library/logging.html?highlight=exc_text#logging.Formatter.format

"Note that the formatted exception information is cached in attribute exc_text. This is useful because the exception information can be pickled and sent across the wire, but you should be careful if you have more than one 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."
History
Date User Action Args
2021-07-12 05:39:28vinay.sajipsetrecipients: + vinay.sajip, hyamanieu
2021-07-12 05:39:28vinay.sajipsetmessageid: <1626068368.53.0.661480226189.issue44599@roundup.psfhosted.org>
2021-07-12 05:39:28vinay.sajiplinkissue44599 messages
2021-07-12 05:39:28vinay.sajipcreate