Message 81274 - Python tracker
Message81274
| Author | shamilbi |
|---|---|
| Recipients | shamilbi |
| Date | 2009-02-06.16:07:44 |
| SpamBayes Score | 0.0028510117 |
| Marked as misclassified | No |
| Message-id | <1233936467.22.0.152712476213.issue5170@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
if i configure logging into a file with encoding = 'cp1251' and do
logger.debug(u'...') then i get crash with UnicodeError
i suggest reimplementing method FileHandler.emit():
...
if isinstance(msg, unicode):
stream.write(f % msg) # it works!
... |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2009-02-06 16:07:47 | shamilbi | set | recipients: + shamilbi |
| 2009-02-06 16:07:47 | shamilbi | set | messageid: <1233936467.22.0.152712476213.issue5170@psf.upfronthosting.co.za> |
| 2009-02-06 16:07:46 | shamilbi | link | issue5170 messages |
| 2009-02-06 16:07:45 | shamilbi | create | |