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

fix log_requests_level misconfiguration #24056

Merged
merged 3 commits into from
Nov 8, 2023

Conversation

peteski22
Copy link

@peteski22 peteski22 commented Nov 8, 2023

A refactoring change introduced a bug where the incorrect value (log level rather than log requests level) is suppled to the receiver which configures the log requests level on a Core.

Fixes: #24045

@peteski22 peteski22 added bug Used to indicate a potential bug core Issues and Pull-Requests specific to Vault Core core/config pr/no-changelog backport/1.13.x labels Nov 8, 2023
@peteski22 peteski22 added this to the 1.13.11 milestone Nov 8, 2023
@peteski22 peteski22 marked this pull request as ready for review November 8, 2023 09:01
@peteski22 peteski22 requested a review from kubawi November 8, 2023 09:02
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Nov 8, 2023
// Log level
c.configureLogRequestLevel(conf.RawConfig.LogLevel)
// Log requests level
c.configureLogRequestsLevel(conf.RawConfig.LogRequestsLevel)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the actual fix (supplying LogRequestsLevel instead of LogLevel), the rest of the PR is tidy up.

Copy link

github-actions bot commented Nov 8, 2023

Build Results:
All builds succeeded! ✅

Copy link
Contributor

@kubawi kubawi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

github-actions bot commented Nov 8, 2023

CI Results:
All Go tests succeeded! ✅

@peteski22 peteski22 merged commit 0f5f648 into main Nov 8, 2023
131 of 160 checks passed
@peteski22 peteski22 deleted the peteski22/fix-log-requests-level-config branch November 8, 2023 09:22
peteski22 pushed a commit that referenced this pull request Nov 8, 2023
peteski22 pushed a commit that referenced this pull request Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Used to indicate a potential bug core/config core Issues and Pull-Requests specific to Vault Core hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed pr/no-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

log_request_level has to be explicitly set now in config with 1.13.9 contrary to what is documented
2 participants