Message181700
Hm the correct way to use exception is:
except Something:
logger.exception('problem while doing X')
i.e. this is a generic unicode-to-str-with-default-encoding problem, not something specific to logging.
Vinay, do you think logging should do something smarter than calling str when passed non-str objects? |
|
Date |
User |
Action |
Args |
2013-02-08 20:59:50 | eric.araujo | set | recipients:
+ eric.araujo, vinay.sajip, ezio.melotti, docs@python, Kronuz |
2013-02-08 20:59:50 | eric.araujo | set | messageid: <1360357190.79.0.585424757224.issue17155@psf.upfronthosting.co.za> |
2013-02-08 20:59:50 | eric.araujo | link | issue17155 messages |
2013-02-08 20:59:50 | eric.araujo | create | |
|