Message145957
| Author |
vinay.sajip |
| Recipients |
alexis, eric.araujo, tarek, vinay.sajip |
| Date |
2011年10月19日.20:40:15 |
| SpamBayes Score |
7.743168e-07 |
| Marked as misclassified |
No |
| Message-id |
<1319056811.46803.YahooMailNeo@web25803.mail.ukl.yahoo.com> |
| In-reply-to |
<1319054737.41.0.295237299107.issue13225@psf.upfronthosting.co.za> |
| Content |
> 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. |
|