Skip to content

Commit

Permalink
πŸ”„ Sync from monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
mojo-machine[bot] committed Nov 30, 2023
1 parent e31f805 commit d176ed2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/middleware/request/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ func Logger(log *logrus.Entry) func(http.Handler) http.Handler {

// create a mutable logger instance which will persist for the request
// inject pointer to the logger into the request context
r = r.WithContext(clog.Set(ctx, log))
ctx = clog.Set(ctx, log)
r = r.WithContext(ctx)

// panics inside handlers will be logged to standard before propagation
defer clog.HandlePanic(ctx, true)
Expand Down

0 comments on commit d176ed2

Please sign in to comment.