Message98981
| Author |
methane |
| Recipients |
methane |
| Date |
2010年02月07日.05:10:15 |
| SpamBayes Score |
2.9461724e-09 |
| Marked as misclassified |
No |
| Message-id |
<1265519418.35.0.0585940634416.issue7869@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
When exception raised in logging, traceback is shown but it doesn't tell
me which logging code cause the error.
$ cat unusable_traceback.py
import logging
logging.warn('%s %s', 1) # not enough arguments.
$ python unusable_traceback.py
Traceback (most recent call last):
File "/usr/lib/python2.6/logging/__init__.py", line 768, in emit
msg = self.format(record)
File "/usr/lib/python2.6/logging/__init__.py", line 648, in format
return fmt.format(record)
File "/usr/lib/python2.6/logging/__init__.py", line 436, in format
record.message = record.getMessage()
File "/usr/lib/python2.6/logging/__init__.py", line 306, in getMessage
msg = msg % self.args
TypeError: not enough arguments for format string |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年02月07日 05:10:18 | methane | set | recipients:
+ methane |
| 2010年02月07日 05:10:18 | methane | set | messageid: <1265519418.35.0.0585940634416.issue7869@psf.upfronthosting.co.za> |
| 2010年02月07日 05:10:16 | methane | link | issue7869 messages |
| 2010年02月07日 05:10:15 | methane | create |
|