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 felipecruz
Recipients felipecruz
Date 2015-12-02.19:27:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1449084472.03.0.0629669508216.issue25785@psf.upfronthosting.co.za>
In-reply-to
Content
I'm using TimedRotatingFileHandler to rotate a log file *every* minute.

If I stop my program, in the middle of a minute, and start again, the next rotation will happen at (currentTime + 60). The result of this behavior is that I'll end up with files "log_01" and "log_03", instead of "log_01", "log_02" and "log_03".

I'm using this class with a little modification which sets the next rollover 
time to (currentTime + (self.interval - currentSecond)). In this case, even If I stop and start my program in the middle a minute, the next rollover time will be the end of the current minute, not 60 seconds later and the result will be one file for each minute.

To sum up, what happen is that the same program with the very same configuration, produces a different result if stopped for even just one second. If the interval was "rotate every 60 seconds" I would be ok, but If I'm configuring to rotate every minute I expect one file for each minute if the program was running the time the minutes changed.
History
Date User Action Args
2015-12-02 19:27:52felipecruzsetrecipients: + felipecruz
2015-12-02 19:27:52felipecruzsetmessageid: <1449084472.03.0.0629669508216.issue25785@psf.upfronthosting.co.za>
2015-12-02 19:27:51felipecruzlinkissue25785 messages
2015-12-02 19:27:51felipecruzcreate