[issue8924] Error in error message in logging

Vinay Sajip report at bugs.python.org
Thu Jun 10 21:30:02 CEST 2010


Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:

It seems like the logging message will be Unicode (as you have specified that it should be so) but the exception message will be string. Can you confirm whether this is the case? What type is the return value of Formatter.formatException for the specific exception you're getting, in your exact environment?

If it's not Unicode, can you see what happens if you use a subclassed Formatter whose formatException decodes the returned value from the base class formatException with the appropriate encoding, and return Unicode from your overridden formatException message?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8924>
_______________________________________


More information about the Python-bugs-list mailing list