[issue1295] logging records cache the result of formatException()
Guido van Rossum
report at bugs.python.org
Thu Oct 18 19:01:37 CEST 2007
Guido van Rossum added the comment:
This is tough. On the one hand you are right that different classes that
have different formatException() methods aren't treated correctly; on
the other hand I think the caching is important for other cases where
there are multiple loggers all using the default formatException().
I recommend that instead of getting rid of the cache, you fix your class
by overriding format() to reset record.ex c_text and then calling the
base class format() method.
----------
nosy: +gvanrossum
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1295>
__________________________________
More information about the Python-bugs-list
mailing list