[issue5013] Problems with delay parm of logging.handlers.RotatingFileHandler

2009-01-20 Thread Fons Dijkstra
New submission from Fons Dijkstra f...@xs4all.nl: When you set the delay parameter of the logging.handlers.RotatingFileHandler.__init__() function to True, two things go wrong: 1) A previously set formatter is reset (to None) upon lazy creating the StreamHandler. That means in practice that

[issue5013] Problems with delay parm of logging.handlers.RotatingFileHandler

2009-01-20 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- assignee: - vsajip nosy: +vsajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5013 ___ ___

[issue5013] Problems with delay parm of logging.handlers.RotatingFileHandler

2009-01-20 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Fixes now in trunk and release26-maint. Note that RotatingFileHandler will open the file when shouldRollover() is called - which it is from emit() - and doRollover() will also open the file even if a delay parameter is set.