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

Fixed the default log level always info issue #8

Merged
merged 2 commits into from
Feb 22, 2024

Conversation

jerrytfleung
Copy link

@jerrytfleung jerrytfleung commented Feb 22, 2024

I think zap and opentelemetry-lambda intended to use info as default

zap.ParseAtomicLevel("") will return info. Which means without defining environment variable OPENTELEMETRY_EXTENSION_LOG_LEVEL, the level is still overwritten no matter what is set in the default atomic level.

Now we check the existence of the variable and parse it when necessary.

@jerrytfleung jerrytfleung requested review from cheempz and a team February 22, 2024 00:16
Copy link

@cheempz cheempz left a comment

Choose a reason for hiding this comment

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

LGTM

@jerrytfleung jerrytfleung merged commit 77ce861 into swo Feb 22, 2024
2 checks passed
@jerrytfleung jerrytfleung deleted the zap_logger_default branch February 22, 2024 00:31
@jerrytfleung jerrytfleung added the go label Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants