From 230d1dc20a059ae310f069cc89f60721de017394 Mon Sep 17 00:00:00 2001 From: alihasan070707 <52155098+alihasan070707@users.noreply.github.com> Date: Tue, 13 May 2025 12:21:25 +0530 Subject: [PATCH] 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> --- cmd/dex/logger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/dex/logger.go b/cmd/dex/logger.go index e979011c..c1fe6b4a 100644 --- a/cmd/dex/logger.go +++ b/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)} }