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 solarmist
Recipients solarmist
Date 2013-09-05.23:49:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1378424967.99.0.0736879617379.issue18940@psf.upfronthosting.co.za>
In-reply-to
Content
In TimedRotatingFileHandler if you have a low volume logger than hasn't written to the log within the interval time doRollover will fail because there is no file to rotate.

os.rename(self.baseFilename, dfn) 

should be something like

if os.path.exists(self.base_fileName):
    os.rename(self.baseFilename, dfn

I have included a unit test file.  This test fails on 2.7.1 and 2.7.3. I have not tried 2.7.5.
History
Date User Action Args
2013-09-05 23:49:28solarmistsetrecipients: + solarmist
2013-09-05 23:49:27solarmistsetmessageid: <1378424967.99.0.0736879617379.issue18940@psf.upfronthosting.co.za>
2013-09-05 23:49:27solarmistlinkissue18940 messages
2013-09-05 23:49:27solarmistcreate