Parcourir la source

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

benqi il y a 2 ans
Parent
commit
5d7919a9f5
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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)