Message146018
| Author |
guettli |
| Recipients |
guettli |
| Date |
2011年10月20日.14:43:19 |
| SpamBayes Score |
1.4295729e-06 |
| Marked as misclassified |
No |
| Message-id |
<1319121800.04.0.366773580653.issue13232@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
In changeset fe6be0426e0d the format() method was changed. Unfortunately it does not catch all unicode decode errors.
I think line 482 of logging/__init__.py should be modified:
to this (add 'replace'):
s = s + record.exc_text.decode(sys.getfilesystemencoding(), 'replace')
http://hg.python.org/cpython/file/f35514dfadf8/Lib/logging/__init__.py#l482
Here is the stacktrace we get:
{{{
Traceback (most recent call last):
File "/usr/lib64/python2.7/logging/__init__.py", line 838, in emit
msg = self.format(record)
File "/usr/lib64/python2.7/logging/__init__.py", line 715, in format
return fmt.format(record)
File "/home/modbau_esg_p/djangotools/utils/logutils.py", line 32, in format
msg=logging.Formatter.format(self, record)
File "/usr/lib64/python2.7/logging/__init__.py", line 482, in format
s = s + record.exc_text.decode(sys.getfilesystemencoding())
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 662: ordinal not in range(128)
Logged from file base.py, line 209
}}} |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年10月20日 14:43:20 | guettli | set | recipients:
+ guettli |
| 2011年10月20日 14:43:20 | guettli | set | messageid: <1319121800.04.0.366773580653.issue13232@psf.upfronthosting.co.za> |
| 2011年10月20日 14:43:19 | guettli | link | issue13232 messages |
| 2011年10月20日 14:43:19 | guettli | create |
|