Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
gh-93205: When rotating logs with no namer specified, match whole extension#93224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
gh-93205: When rotating logs with no namer specified, match whole extension#93224
Uh oh!
There was an error while loading.Please reload this page.
Conversation
ghost commentedMay 25, 2022 • edited by ghost
Loading Uh oh!
There was an error while loading.Please reload this page.
edited by ghost
Uh oh!
There was an error while loading.Please reload this page.
bedevere-bot commentedMay 25, 2022
Most changes to Pythonrequire a NEWS entry. Please add it using theblurb_it web app or theblurb command-line tool. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM.
I agree that it is better to separate simpler case with no namer, where the matches can be found unambiguous and more efficiently from more complex case with helper.
It is still not completely unambiguous and can conflict with other TimedRotatingFileHandler with a namer that simply adds an extension, but I'm going to fix this in other issue.
Uh oh!
There was an error while loading.Please reload this page.
Thanks@ilCatania for the PR, and@serhiy-storchaka for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12. |
…le extension (pythonGH-93224)(cherry picked from commit113687a)Co-authored-by: Gabriele Catania <gabriele.ctn@gmail.com>
GH-115784 is a backport of this pull request to the3.12 branch. |
…le extension (pythonGH-93224)(cherry picked from commit113687a)Co-authored-by: Gabriele Catania <gabriele.ctn@gmail.com>
GH-115785 is a backport of this pull request to the3.11 branch. |
Uh oh!
There was an error while loading.Please reload this page.
FixesGH-93205: When setting up multiple logging handlers of type
TimedRotatingFileHandlerthat log to the same directory and only differ by the file extension, rollover does not work properly for either of them.There have been a few changes in
TimeRotatingHandler(GH-90221,GH-89791) due to different file format expectations when a namer is specified versus not specified. This PR fixes the issue inGH-93205 while trying to simplify the code.