Message100253
I forgot something: to avoid trying to file rotation at each log message, the rotation should be disabled at the first error. For RotatingFileHandler, it can be something like:
try:
...
except:
self.maxBytes=0
raise
For TimedRotatingFileHandler, a flag (new attribute) would be required.
I'm not sure that disabling the rotation if the first rotation failure is a good idea, but most the time if the logging system is broken, the application starts to fail randomly :-/ Anyway, the first rotation exception is still raised and so would be catched by something :-) |
|
Date |
User |
Action |
Args |
2010-03-01 11:09:37 | vstinner | set | recipients:
+ vstinner |
2010-03-01 11:09:36 | vstinner | set | messageid: <1267441776.96.0.497039459444.issue8034@psf.upfronthosting.co.za> |
2010-03-01 11:09:35 | vstinner | link | issue8034 messages |
2010-03-01 11:09:35 | vstinner | create | |
|