We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ca8ce8 commit 8b1565cCopy full SHA for 8b1565c
handler.go
@@ -54,6 +54,11 @@ func (h *FormatterHandler) WithAttrs(attrs []slog.Attr) slog.Handler {
54
55
// WithGroup implements slog.Handler.
56
func (h *FormatterHandler) WithGroup(name string) slog.Handler {
57
+ // https://cs.opensource.google/go/x/exp/+/46b07846:slog/handler.go;l=247
58
+ if name == "" {
59
+ return h
60
+ }
61
+
62
return &FormatterHandler{
63
groups: append(h.groups, name),
64
formatters: h.formatters,
0 commit comments