Explorar el Código

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

benqi hace 2 años
padre
commit
5d7919a9f5
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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)