1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-04-11 11:42:10 +02:00

fix: fix log.Helper.WithContext msg key missing (#1571)

This commit is contained in:
sxpsxp12 2021-10-20 18:50:52 +08:00 committed by GitHub
parent ad7df8d4bc
commit 63b1764a04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,6 +39,7 @@ func NewHelper(logger Logger, opts ...Option) *Helper {
// to ctx. The provided ctx must be non-nil.
func (h *Helper) WithContext(ctx context.Context) *Helper {
return &Helper{
msgKey: h.msgKey,
logger: WithContext(ctx, h.logger),
}
}