Message90247
In Formatter.format():
# Cache the traceback text to avoid converting it multiple
times
# (it's constant anyway)
if not record.exc_text:
record.exc_text = self.formatException(record.exc_info)
The result must ideally be cache on the formatter object (self) itself
rather than the record object. Because, record object is reused in
multiple handlers .. thus multiple formatters. If the first formatter,
caches the traceback text, then subsequent formatters will use the same
even though of them is apparently a custom Formatter with overridden
`formatException`. |
|
Date |
User |
Action |
Args |
2009-07-08 02:18:04 | srid | set | recipients:
+ srid, vinay.sajip |
2009-07-08 02:18:04 | srid | set | messageid: <1247019484.09.0.843372167885.issue6435@psf.upfronthosting.co.za> |
2009-07-08 02:18:02 | srid | link | issue6435 messages |
2009-07-08 02:18:01 | srid | create | |
|