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

Sync sublogger level with parent #24502

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Sync sublogger level with parent #24502

wants to merge 2 commits into from

Conversation

mpalmi
Copy link
Contributor

@mpalmi mpalmi commented Dec 13, 2023

With the following commits, subloggers are now able to set their own levels while maintaining a hierarchical relationship to their parent/children.

hashicorp/go-hclog#134
hashicorp/go-hclog#137

This allows us to keep leaf sublogger levels in sync with their parent, unless specifically set otherwise.

As a result, we no longer have to track every leaf logger in the (Core).allLoggers slice. Instead, we can track main subsystem subloggers in allLoggers (e.g. core.replication), without having to manage every child (e.g. core.replication.index).

@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Dec 13, 2023
Copy link

CI Results:
Failures:

Test Type Package Test Logs
vault TestSystemBackend_LoggersByName view test results
vault TestSystemBackend_LoggersByName/loggers-by-name-core view test results
vault TestSystemBackend_LoggersByName/loggers-by-name-identity view test results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant