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 eric.araujo
Recipients Kronuz, docs@python, eric.araujo, ezio.melotti, vinay.sajip
Date 2013-02-08.20:59:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1360357190.79.0.585424757224.issue17155@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2013-02-08 20:59:50eric.araujosetrecipients: + eric.araujo, vinay.sajip, ezio.melotti, docs@python, Kronuz
2013-02-08 20:59:50eric.araujosetmessageid: <1360357190.79.0.585424757224.issue17155@psf.upfronthosting.co.za>
2013-02-08 20:59:50eric.araujolinkissue17155 messages
2013-02-08 20:59:50eric.araujocreate