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.
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 calledContext
. But sometimes we need to uselog.WithContext
to convert a Logger.