Bugs item #1508253, was opened at 2006-06-18 12:33 Message generated for change (Settings changed) made by nnorwitz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1508253&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.4 Status: Open Resolution: None Priority: 5 Submitted By: tdir (tdir) >Assigned to: Vinay Sajip (vsajip) Summary: logging fileConfig swallows handler exception Initial Comment: If you specify a handler such as a RotatingFileHandler and the path you provide in the args specification ('option') is bad, config.fileConfig() catches the exception and 'swallows' it. The result is later on, when that handler is specified for a logger, you get an exception saying there is no such handler. A much friendlier behavior would be for fileConfig() to raise an exception so the real cause of the problem can be easily identified. Also, if there is a bug in the code itself, it would also get swallowed in similar fashion. In general, silently swallowing exceptions is rarely the best choice IMHO. Example ini with bad path (assuming /bad/path does not exist): [handler_defaultrotatingfile] class=handlers.RotatingFileHandler args=("/bad/path/logdir/my_log.log", 'w', 100000, 10) formatter=std ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1508253&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com