Skip to content

Commit 58f101e

Browse files
committed
Fix bug in slog support carrying the wrong sink
1 parent 6151b2f commit 58f101e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sloghandler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func (l *slogHandler) WithGroup(name string) slog.Handler {
130130
copy := *l
131131
if l.slogSink != nil {
132132
copy.slogSink = l.slogSink.WithGroup(name)
133-
copy.sink = l.slogSink
133+
copy.sink = copy.slogSink
134134
} else {
135135
copy.groupPrefix = copy.addGroupPrefix(name)
136136
}

0 commit comments

Comments
 (0)