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 54f8e02 commit 5bfaf06Copy full SHA for 5bfaf06
log/logger_test.go
@@ -7,7 +7,6 @@ import (
7
"io"
8
"log/slog"
9
"math/big"
10
- "os"
11
"strings"
12
"testing"
13
"time"
@@ -70,7 +69,7 @@ func TestJSONHandler(t *testing.T) {
70
69
}
71
72
func BenchmarkTraceLogging(b *testing.B) {
73
- SetDefault(NewLogger(NewTerminalHandler(os.Stderr, true)))
+ SetDefault(NewLogger(NewTerminalHandler(io.Discard, true)))
74
b.ResetTimer()
75
for i := 0; i < b.N; i++ {
76
Trace("a message", "v", i)
0 commit comments