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:
@@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user