This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2010-03-01.11:09:35
SpamBayes Score 0.00010966597
Marked as misclassified No
Message-id <1267441776.96.0.497039459444.issue8034@psf.upfronthosting.co.za>
In-reply-to
Content
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 :-)
History
Date User Action Args
2010-03-01 11:09:37vstinnersetrecipients: + vstinner
2010-03-01 11:09:36vstinnersetmessageid: <1267441776.96.0.497039459444.issue8034@psf.upfronthosting.co.za>
2010-03-01 11:09:35vstinnerlinkissue8034 messages
2010-03-01 11:09:35vstinnercreate