Skip to content

Commit 2d174f0

Browse files
committed
final lint of the week!
1 parent 739f57d commit 2d174f0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

go/logger/contexthandler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// contextHandler is a wrapper around slog.Handler that automatically
2-
// extracts registered context keys and logs their values as part of the attributes.
31
package logger
42

53
import (
@@ -21,6 +19,8 @@ func RegisterContextKey(ctxKey any, logKey string) {
2119
ctxKeys[ctxKey] = logKey
2220
}
2321

22+
// contextHandler is a wrapper around slog.Handler that automatically
23+
// extracts registered context keys and logs their values as part of the attributes.
2424
type contextHandler struct {
2525
slog.Handler
2626
}

0 commit comments

Comments
 (0)