Re: Strange logging.Formatter behaviour

2011-11-22 Thread Vinay Sajip
On Nov 22, 3:19 pm, Tiaburn Stedd wrote: > I don't believe this behavior is normal. I expect error raised in a > Formatter.format function, should be passed all the way up, but not > consumed. > > I found a workaround: > > class CustomFileHandler(logging.FileHandler, object): >     def handleError

Strange logging.Formatter behaviour

2011-11-22 Thread Tiaburn Stedd
Hello, all! I'm working on specific project and have a curious task where I need to use specific formatter and custom handlers, which are switchable to default handlers. Problem is that default handlers behaviour is to consume errors, so errors raised from code have printed tracebacks, but not pas