rewrote internal/grpc/grpclog

This commit is contained in:
miampf 2024-01-22 14:58:18 +01:00
parent 700d886c57
commit a2ded13ea6
No known key found for this signature in database
GPG key ID: 376EAC0E5307A669
2 changed files with 3 additions and 4 deletions

View file

@ -50,5 +50,5 @@ type getStater interface {
}
type debugLog interface {
Debug(format string, args ...any)
Debug(msg string, args ...any)
}

View file

@ -9,7 +9,6 @@ package grpclog
import (
"context"
"fmt"
"sync"
"testing"
@ -88,8 +87,8 @@ type spyLog struct {
msgs []string
}
func (f *spyLog) Debug(format string, args ...any) {
f.msgs = append(f.msgs, fmt.Sprintf(format, args...))
func (f *spyLog) Debug(msg string, args ...any) {
f.msgs = append(f.msgs, msg)
}
type stubConn struct {