mirror of
https://github.com/netbirdio/dex.git
synced 2026-05-22 18:43:53 -07:00
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>
This commit is contained in:
+1
-1
@@ -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)}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user