1
0
mirror of https://github.com/go-kratos/kratos.git synced 2026-05-22 10:15:24 +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
+1
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),
}
}