[issue40469] TimedRotatingFileHandler rotating on use not time

Vinay Sajip report at bugs.python.org
Fri Aug 13 08:12:02 EDT 2021


Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:

> You are far better and more experienced in maintaining widely used opensource codebases so I wouldn't argue with you, but... :)

Well, if a change introduces a problem, it will be my lookout, won't it? Just as the original patch for bpo-8117 is proving to be :-)

OK, how about this? We update the PR to add a new use_ctime=False keyword argument to TimedRotatingHandler.__init__(). If nothing else changes, the behaviour is as it is currently. If use_ctime=True is passed in the instantiation, then the constructor will use CTIME rather than MTIME. Will that work for you? I'd be OK with that approach.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40469>
_______________________________________


More information about the Python-bugs-list mailing list