Skip to content

Commit 5bfaf06

Browse files
committed
log: fix issues with benchmarks (ethereum#30667)
1 parent 54f8e02 commit 5bfaf06

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

log/logger_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"io"
88
"log/slog"
99
"math/big"
10-
"os"
1110
"strings"
1211
"testing"
1312
"time"
@@ -70,7 +69,7 @@ func TestJSONHandler(t *testing.T) {
7069
}
7170

7271
func BenchmarkTraceLogging(b *testing.B) {
73-
SetDefault(NewLogger(NewTerminalHandler(os.Stderr, true)))
72+
SetDefault(NewLogger(NewTerminalHandler(io.Discard, true)))
7473
b.ResetTimer()
7574
for i := 0; i < b.N; i++ {
7675
Trace("a message", "v", i)

0 commit comments

Comments
 (0)