We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6492751 commit 2b0b3cdCopy full SHA for 2b0b3cd
log/handler.go
@@ -13,27 +13,9 @@ import (
13
"github.com/holiman/uint256"
14
)
15
16
-type discardHandler struct{}
17
-
18
// DiscardHandler returns a no-op handler
19
func DiscardHandler() slog.Handler {
20
- return &discardHandler{}
21
-}
22
23
-func (h *discardHandler) Handle(_ context.Context, r slog.Record) error {
24
- return nil
25
26
27
-func (h *discardHandler) Enabled(_ context.Context, level slog.Level) bool {
28
- return false
29
30
31
-func (h *discardHandler) WithGroup(name string) slog.Handler {
32
- panic("not implemented")
33
34
35
-func (h *discardHandler) WithAttrs(attrs []slog.Attr) slog.Handler {
36
+ return slog.DiscardHandler
37
}
38
39
type TerminalHandler struct {
0 commit comments