This repository has been archived by the owner on Nov 5, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This deals with a surprising gotcha in Python's logging system: the result of formatException() is cached. If you want to ensure that a custom formatException method is called, you need to explicitly clear the exc_text attribute in format(). This is documented behavior, see https://bugs.python.org/issue29056 for background info. In our setup, we had an earlier handler with a default formatter, so NoStacktraceFormatter's method was entirely ignored.
- Loading branch information