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): GetLogger doesn't returns the same logger that was set before. #3420

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

Conversation

kvii
Copy link
Contributor

@kvii kvii commented Sep 12, 2024

Description (what this PR does / why we need it):

Let log.GetLogger returns its stored value directly.

Which issue(s) this PR fixes (resolves / be part of):

fixes #3417

Other special notes for the reviewers:

Have breaking changes. GetLogger not always return the same Logger.
I know there is a function called Context. But sometimes we need to use log.WithContext to convert a Logger.

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using global logger fails to bind values causing incorrect context values
1 participant