]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-115809: Improve TimedRotatingFileHandler.getFilesToDelete() (GH-115812...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 3 Mar 2024 07:59:10 +0000 (08:59 +0100)
committerGitHub <noreply@github.com>
Sun, 3 Mar 2024 07:59:10 +0000 (07:59 +0000)
commit3f830adf58745723dba5b7fcf7cb39e4c0d0224b
treec7148b1343e5711b487abd36a51e412d312221d6
parent5b73ed4b6620fa52becfbe225c8ff8064962895b
[3.12] gh-115809: Improve TimedRotatingFileHandler.getFilesToDelete() (GH-115812) (GH-116261)

Improve algorithm for computing which rolled-over log files to delete
in logging.TimedRotatingFileHandler. It is now reliable for handlers
without namer and with arbitrary deterministic namer that leaves
the datetime part in the file name unmodified.
(cherry picked from commit 87faec28c78f6fa8eaaebbd1ababf687c7508e71)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/logging/handlers.py
Lib/test/test_logging.py
Misc/NEWS.d/next/Library/2024-02-22-11-29-27.gh-issue-115809.9H1DhB.rst [new file with mode: 0644]