Ivan Marton added the comment:
The assumed behaviour of TimedRotatingFileHandler is to rotate log files older
than configured. Even when the script is executed multiple times.
self.rolloverAt (the variable that defines when the rollover should be
performed) is set after each rollover and
Change by Ivan Marton :
Added file: https://bugs.python.org/file50209/log_40469_single.py
___
Python tracker
<https://bugs.python.org/issue40469>
___
___
Python-bug
Ivan Marton added the comment:
Well, there is nothing in the documentation that would say the logrotation can
be only performed by continously running scripts, thats why. :)
There are scripts or even daemons written in Python that need to be restarted
from time to time. If the logrotate
Ivan Marton added the comment:
> Well, what's the need to rotate based on time when you just run scripts
> sporadically or they're very short-lived? Not trying to argue, just trying to
> understand.
> Yes, but generally daemons are long-lived relative to the rotation in
Change by Ivan Marton :
--
keywords: +patch
nosy: +martonivan
nosy_count: 1.0 -> 2.0
pull_requests: +23445
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24660
___
Python tracker
<https://bugs.python.org/i
Change by Ivan Marton :
--
nosy: +martonivan
___
Python tracker
<https://bugs.python.org/issue43382>
___
___
Python-bugs-list mailing list
Unsubscribe: