From 5d7919a9f5f76ee0a84122bcb0f8bd007cb52bd5 Mon Sep 17 00:00:00 2001 From: benqi Date: Sun, 24 Jul 2022 22:18:04 +0800 Subject: [PATCH] fix: remove invalid log fields in notLoggingContentMethods (#2187) --- zrpc/internal/serverinterceptors/statinterceptor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zrpc/internal/serverinterceptors/statinterceptor.go b/zrpc/internal/serverinterceptors/statinterceptor.go index 37ff6025..34d83c78 100644 --- a/zrpc/internal/serverinterceptors/statinterceptor.go +++ b/zrpc/internal/serverinterceptors/statinterceptor.go @@ -60,9 +60,9 @@ func logDuration(ctx context.Context, method string, req interface{}, duration t _, ok = notLoggingContentMethods.Load(method) if ok { if duration > slowThreshold.Load() { - logger.Slowf("[RPC] slowcall - %s - %s - %s", addr, method) + logger.Slowf("[RPC] slowcall - %s - %s", addr, method) } else { - logger.Infof("%s - %s - %s", addr, method) + logger.Infof("%s - %s", addr, method) } } else { content, err := json.Marshal(req)