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 srid
Recipients srid, vinay.sajip
Date 2009-07-08.02:18:01
SpamBayes Score 0.00776424
Marked as misclassified No
Message-id <1247019484.09.0.843372167885.issue6435@psf.upfronthosting.co.za>
In-reply-to
Content
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`.
History
Date User Action Args
2009-07-08 02:18:04sridsetrecipients: + srid, vinay.sajip
2009-07-08 02:18:04sridsetmessageid: <1247019484.09.0.843372167885.issue6435@psf.upfronthosting.co.za>
2009-07-08 02:18:02sridlinkissue6435 messages
2009-07-08 02:18:01sridcreate