Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

fix: ucs response masked serialize in connector event (#10137)

gopikrishna000672bd471deae
diff --git a/crates/router/src/core/unified_connector_service.rs b/crates/router/src/core/unified_connector_service.rs
index 7296be2df1..1fd3e1be57 100644
--- a/crates/router/src/core/unified_connector_service.rs
+++ b/crates/router/src/core/unified_connector_service.rs
@@ -1549,8 +1549,8 @@ where
.connector_http_status_code
.unwrap_or(200);
- // Log the actual gRPC response
- let grpc_response_body = serde_json::to_value(&grpc_response).unwrap_or_else(
+ // Log the actual gRPC response with masking
+ let grpc_response_body = masking::masked_serialize(&grpc_response).unwrap_or_else(
|_| serde_json::json!({"error": "failed_to_serialize_grpc_response"}),
);