]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-115809: Improve TimedRotatingFileHandler.getFilesToDelete() (GH-115812)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 3 Mar 2024 07:42:08 +0000 (09:42 +0200)
committerGitHub <noreply@github.com>
Sun, 3 Mar 2024 07:42:08 +0000 (09:42 +0200)
commit87faec28c78f6fa8eaaebbd1ababf687c7508e71
tree047613235ec60b57548a564afd9f9e1ebea46468
parent002a5948fc9139abec2ecf92df8b543e093c43fb
gh-115809: Improve TimedRotatingFileHandler.getFilesToDelete() (GH-115812)

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.
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]