Skip to content

[PR #14284/c7f9e75c backport][9.1.x] Fix nested caplog.filtering early removal - #14939

Open
patchback[bot] wants to merge 1 commit into
9.1.xfrom
patchback/backports/9.1.x/c7f9e75c5d3b04bf96e8389a9eac6d98da2be8f4/pr-14284
Open

[PR #14284/c7f9e75c backport][9.1.x] Fix nested caplog.filtering early removal#14939
patchback[bot] wants to merge 1 commit into
9.1.xfrom
patchback/backports/9.1.x/c7f9e75c5d3b04bf96e8389a9eac6d98da2be8f4/pr-14284

Conversation

@patchback

@patchback patchback Bot commented Aug 26, 2026

Copy link
Copy Markdown

This is a backport of PR #14284 as merged into main (c7f9e75).

Closes #14189. Nested caplog.filtering usage was eagerly removing filters when the inner context manager exited, even if the filter was already present from the outer context manager. This PR ensures the filter is only removed if it wasn't already present when the context manager was entered.

Fix nested caplog.filtering early removal

(cherry picked from commit c7f9e75)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant