Vinay Sajip added the comment:
A number of points:
1. exc_text is not just an implementation detail - it's in the docs. Thus,
removing the cache altogether would be backwards-incompatible.
2. The exc_text value is the only simple way of propagating the exception
information across the wire,
New submission from James Lekas :
logging.Formatter.format() creates a cache called exc_text with a copy of the
traceback text which it uses for all log handlers (I think). When this cache
is set, format() does not call formatException to format the
exception/traceback data.
Unfortunately, t