Vinay Sajip <vinay_sa...@yahoo.co.uk> added the comment:

> An option (--strict) would be needed to switch from logging messages to 

> exceptions; I wonder if an elegant way to do that would be a custom logging 
> handler.

I'm not sure a custom logging handler is the way to go. I think it would be 
better to log the exception condition in all cases, raising it if --strict is 
specified, and swallowing it otherwise. An application developer can configure 
loggers/handlers appropriately if they want.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13225>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to