This commit is contained in:
Jared Wasinger 2025-04-02 22:37:31 +02:00
parent 32a5f9b535
commit 1a700027ce
2 changed files with 3 additions and 3 deletions

View file

@ -21,9 +21,10 @@ import (
"bytes"
"context"
"fmt"
"github.com/ethereum/go-ethereum/log"
"log/slog"
"sync"
"github.com/ethereum/go-ethereum/log"
)
const (

View file

@ -22,7 +22,7 @@ func (t *mockT) Logf(format string, args ...any) {
// we could gate this operation in a mutex, but because testlogger
// only calls Logf with its internal mutex held, we just write output here
var lineBuf bytes.Buffer
if _, err := fmt.Fprintf(&lineBuf, fmt.Sprintf(format, args...)); err != nil {
if _, err := fmt.Fprintf(&lineBuf, format, args...); err != nil {
panic(err)
}
// The timestamp is locale-dependent, so we want to trim that off
@ -67,5 +67,4 @@ func TestLogging(t *testing.T) {
fmt.Printf("'%s'\n", tc.expected)
}
}
}