Pārlūkot izejas kodu

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 gadi atpakaļ
vecāks
revīzija
c92a2d1b77
1 mainītis faili ar 0 papildinājumiem un 2 dzēšanām
  1. 0 2
      zrpc/internal/serverinterceptors/statinterceptor.go

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