From a2ded13ea69cd9eaad7ec6fd94040a400348c6c8 Mon Sep 17 00:00:00 2001 From: miampf Date: Mon, 22 Jan 2024 14:58:18 +0100 Subject: [PATCH] rewrote internal/grpc/grpclog --- internal/grpc/grpclog/grpclog.go | 2 +- internal/grpc/grpclog/grpclog_test.go | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/internal/grpc/grpclog/grpclog.go b/internal/grpc/grpclog/grpclog.go index d368bf5c6..e29c990b6 100644 --- a/internal/grpc/grpclog/grpclog.go +++ b/internal/grpc/grpclog/grpclog.go @@ -50,5 +50,5 @@ type getStater interface { } type debugLog interface { - Debug(format string, args ...any) + Debug(msg string, args ...any) } diff --git a/internal/grpc/grpclog/grpclog_test.go b/internal/grpc/grpclog/grpclog_test.go index a97c8b6d7..b35baaab8 100644 --- a/internal/grpc/grpclog/grpclog_test.go +++ b/internal/grpc/grpclog/grpclog_test.go @@ -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 {