Przeglądaj źródła

feat: remove info log when disable log (#2525)

* add go-grpc_opt and go_opt for grpc new command

* feat: remove log when disable log

Co-authored-by: zhouyy <zhouyy@ickey.cn>
chowyu12 2 lat temu
rodzic
commit
c92a2d1b77

+ 0 - 2
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)