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(process_tracker): log and ignore the duplicate entry error (#1502)

Narayan Bhat424e77c912e3
diff --git a/crates/router/src/core/payments.rs b/crates/router/src/core/payments.rs
index cfad9583b5..90fbf07640 100644
--- a/crates/router/src/core/payments.rs
+++ b/crates/router/src/core/payments.rs
@@ -134,7 +134,9 @@ where
operation
.to_domain()?
.add_task_to_process_tracker(state, &payment_data.payment_attempt)
- .await?;
+ .await
+ .map_err(|error| logger::error!(process_tracker_error=?error))
+ .ok();
}
payment_data = match connector_details {