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

vdk-core: remove structlog logging override #3066

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

DeltaMichael
Copy link
Contributor

Why?

Structlog should not override the initial logging config. It applies to logging before vdk is initialized and before any plugins are loaded. If an error happens in vdk_main, the logging config will apply. It should remain in core.

It's also not a problem for structlog, because it ejects all logging config just in case.

What?

Remove the structlog override in core

How was this tested?

Locally
CI

What kind of change is this?

Bugfix

Why?

Structlog should not override the initial logging config.
It applies to logging before vdk is initialized and before
any plugins are loaded. If an error happens in vdk_main, the
logging config will apply. It should remain in core.

It's also not a problem for structlog, because it ejects all
logging config just in case.

What?

Remove the structlog override in core

How was this tested?

Locally
CI

What kind of change is this?

Bugfix

Signed-off-by: Dilyan Marinov <mdilyan@vmware.com>
@DeltaMichael DeltaMichael merged commit 6ba82d4 into main Feb 1, 2024
13 checks passed
@DeltaMichael DeltaMichael deleted the person/mdilyan/remove-logging-override branch February 1, 2024 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants