소스 검색

fix: remove invalid log fields in notLoggingContentMethods (#2187)

benqi 2 년 전
부모
커밋
5d7919a9f5
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      zrpc/internal/serverinterceptors/statinterceptor.go

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