]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-88352: Fix logging.TimedRotatingFileHandler (GH-116191)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 1 Mar 2024 15:50:08 +0000 (17:50 +0200)
committerGitHub <noreply@github.com>
Fri, 1 Mar 2024 15:50:08 +0000 (17:50 +0200)
commitfee86fd9a422612b39e5aabf2571b8fe4abac770
treecae40b1a2d7f9500dd540f16117d6520b9ad2b0e
parent9b7f253b55f10df03d43c8a7c2da40ea523ac7a1
gh-88352: Fix logging.TimedRotatingFileHandler (GH-116191)

* Do not overwrite already rolled over files. It happened at midnight or
  during the DST change and caused the loss of data.
* computeRollover() now always return the timestamp larger than the
  specified time.
* Fix computation of the rollover time during the DST change.
Lib/logging/handlers.py
Lib/test/test_logging.py
Misc/NEWS.d/next/Library/2024-03-01-11-57-32.gh-issue-88352.bZ68rw.rst [new file with mode: 0644]