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 { type debugLog interface {
Debug(format string, args ...any) Debug(msg string, args ...any)
} }

View file

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