Browse Source

fix Incorrect Group Handling in RequestContextHandler logger.go (#4082)

Wrap the grouped handler in requestContextHandler to preserve context attribute injection.
fixes #4081

Signed-off-by: alihasan070707 <52155098+alihasan070707@users.noreply.github.com>
pull/4128/head
alihasan070707 10 months ago committed by GitHub
parent
commit
230d1dc20a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      cmd/dex/logger.go

2
cmd/dex/logger.go

@ -63,5 +63,5 @@ func (h requestContextHandler) WithAttrs(attrs []slog.Attr) slog.Handler {
}
func (h requestContextHandler) WithGroup(name string) slog.Handler {
return h.handler.WithGroup(name)
return requestContextHandler{h.handler.WithGroup(name)}
}

Loading…
Cancel
Save