Skip to content

Commit

Permalink
refactor(context.go): uncomment WithContext method on zapLogger struc…
Browse files Browse the repository at this point in the history
…t to enable logging context propagation
  • Loading branch information
kubbot committed Jun 19, 2023
1 parent 441c76b commit ba6943a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions context.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ func WithContext(ctx context.Context) context.Context {
return std.WithContext(ctx)
}

// func (l *zapLogger) WithContext(ctx context.Context) context.Context {
// return context.WithValue(ctx, logContextKey, l)
func (l *zapLogger) WithContext(ctx context.Context) context.Context {
return context.WithValue(ctx, logContextKey, l)
}

// FromContext returns the value of the log key on the ctx.
Expand Down

0 comments on commit ba6943a

Please sign in to comment.