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

pull/1572/head
sxpsxp12 3 years ago committed by GitHub
parent ad7df8d4bc
commit 63b1764a04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      log/helper.go

@ -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…
Cancel
Save