homepage

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 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:18methanesetrecipients: + methane
2010年02月07日 05:10:18methanesetmessageid: <1265519418.35.0.0585940634416.issue7869@psf.upfronthosting.co.za>
2010年02月07日 05:10:16methanelinkissue7869 messages
2010年02月07日 05:10:15methanecreate

AltStyle によって変換されたページ (->オリジナル) /