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:
parent
ad7df8d4bc
commit
63b1764a04
@ -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),
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user