Vinay Sajip <[email protected]> added the comment:

> From: Yateen V. Joshi <[email protected]>

> A question however, I do not see IOError exception being handled 
> anywhere in the logging module. Is it not possible that the same would
> occur when we are trying to 'emit' a record to a log file? Or some other
> IO related processing is happening at logger level?

If you look carefully at the code in the module, you will see code like

except:
    self.handleError(record)

which *will* catch IOError. In handleError, you would have access to the 
exception via sys.exc_info().

----------

_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue7664>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to