summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-03-03 07:42:08 (GMT)
committerGitHub <noreply@github.com>2024-03-03 07:42:08 (GMT)
commit87faec28c78f6fa8eaaebbd1ababf687c7508e71 (patch)
tree047613235ec60b57548a564afd9f9e1ebea46468 /Misc
parent002a5948fc9139abec2ecf92df8b543e093c43fb (diff)
downloadcpython-87faec28c78f6fa8eaaebbd1ababf687c7508e71.zip
cpython-87faec28c78f6fa8eaaebbd1ababf687c7508e71.tar.gz
cpython-87faec28c78f6fa8eaaebbd1ababf687c7508e71.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2024-02-22-11-29-27.gh-issue-115809.9H1DhB.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2024-02-22-11-29-27.gh-issue-115809.9H1DhB.rst b/Misc/NEWS.d/next/Library/2024-02-22-11-29-27.gh-issue-115809.9H1DhB.rst
new file mode 100644
index 0000000..2a47efb
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2024-02-22-11-29-27.gh-issue-115809.9H1DhB.rst
@@ -0,0 +1,4 @@
+Improve algorithm for computing which rolled-over log files to delete in
+:class:`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.