Browse Source

Merge pull request #15407 from tjhop/chore/slog-handler-compile-check

chore(deduper): add compile check that slog.Handler interface is satisfied
pull/15227/merge
Björn Rabenstein 1 day ago committed by GitHub
parent
commit
ca600cfaff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      util/logging/dedupe.go

2
util/logging/dedupe.go

@ -26,6 +26,8 @@ const (
maxEntries = 1024 maxEntries = 1024
) )
var _ slog.Handler = (*Deduper)(nil)
// Deduper implements *slog.Handler, dedupes log lines based on a time duration. // Deduper implements *slog.Handler, dedupes log lines based on a time duration.
type Deduper struct { type Deduper struct {
next *slog.Logger next *slog.Logger

Loading…
Cancel
Save