]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] gh-115809: Improve TimedRotatingFileHandler.getFilesToDelete() (GH-115812...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 3 Mar 2024 08:01:52 +0000 (09:01 +0100)
committerGitHub <noreply@github.com>
Sun, 3 Mar 2024 08:01:52 +0000 (08:01 +0000)
commitd3756edbc4663531381d4554bbd1567210534137
tree142a6e94b7ee3ca0b709d4ba656d6c37ee53e8fe
parent82e7692ca649993718e1988e5959d06a0c16f029
[3.11] gh-115809: Improve TimedRotatingFileHandler.getFilesToDelete() (GH-115812) (GH-116262)

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]