From c92a2d1b77836ef201777bfa4e395f041bc7f948 Mon Sep 17 00:00:00 2001 From: chowyu12 <81024796+chowyu12@users.noreply.github.com> Date: Sat, 22 Oct 2022 22:07:17 +0800 Subject: [PATCH] feat: remove info log when disable log (#2525) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add go-grpc_opt and go_opt for grpc new command * feat: remove log when disable log Co-authored-by: zhouyy --- zrpc/internal/serverinterceptors/statinterceptor.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/zrpc/internal/serverinterceptors/statinterceptor.go b/zrpc/internal/serverinterceptors/statinterceptor.go index 34d83c78..492d3d76 100644 --- a/zrpc/internal/serverinterceptors/statinterceptor.go +++ b/zrpc/internal/serverinterceptors/statinterceptor.go @@ -61,8 +61,6 @@ func logDuration(ctx context.Context, method string, req interface{}, duration t if ok { if duration > slowThreshold.Load() { logger.Slowf("[RPC] slowcall - %s - %s", addr, method) - } else { - logger.Infof("%s - %s", addr, method) } } else { content, err := json.Marshal(req)