Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable30] fix(logger): Prevent infinite recursion with log.condition => users or matches #50031

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Jan 3, 2025

Backport of PR #50026

When we need to check the log condition for a user matches,
there is a risk that something on the way checks the log level
and would result in an infinite loop.
So we simply check if it's a nested call and use the default
warning level in that case.

Signed-off-by: Joas Schilling <[email protected]>
@backportbot backportbot bot added bug 3. to review Waiting for reviews labels Jan 3, 2025
@backportbot backportbot bot added this to the Nextcloud 30.0.5 milestone Jan 3, 2025
@nickvergessen nickvergessen merged commit c4d46a7 into stable30 Jan 3, 2025
171 checks passed
@nickvergessen nickvergessen deleted the backport/50026/stable30 branch January 3, 2025 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants