why doesn't logging throw any exception when it should? how do I
configure logging to throw exceptions?
.... logging.fatal(' asdf %d', '123')
.... except:
.... print 'this line is never printed'
....
Traceback (most recent call last):
File "/Library/Frameworks/Python.framewor k/Versions/2.5/lib/
python2.5/logging/__init__.py", line 744, in emit
msg = self.format(rec ord)
File "/Library/Frameworks/Python.framewor k/Versions/2.5/lib/
python2.5/logging/__init__.py", line 630, in format
return fmt.format(reco rd)
File "/Library/Frameworks/Python.framewor k/Versions/2.5/lib/
python2.5/logging/__init__.py", line 418, in format
record.message = record.getMessa ge()
File "/Library/Frameworks/Python.framewor k/Versions/2.5/lib/
python2.5/logging/__init__.py", line 288, in getMessage
msg = msg % self.args
TypeError: int argument required
configure logging to throw exceptions?
>>try:
.... except:
.... print 'this line is never printed'
....
Traceback (most recent call last):
File "/Library/Frameworks/Python.framewor k/Versions/2.5/lib/
python2.5/logging/__init__.py", line 744, in emit
msg = self.format(rec ord)
File "/Library/Frameworks/Python.framewor k/Versions/2.5/lib/
python2.5/logging/__init__.py", line 630, in format
return fmt.format(reco rd)
File "/Library/Frameworks/Python.framewor k/Versions/2.5/lib/
python2.5/logging/__init__.py", line 418, in format
record.message = record.getMessa ge()
File "/Library/Frameworks/Python.framewor k/Versions/2.5/lib/
python2.5/logging/__init__.py", line 288, in getMessage
msg = msg % self.args
TypeError: int argument required
Comment