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

refactor(core): log the appropriate error message if the card fails to get saved in locker (#4296)

Amisha Prabhat9de3cdb7d37d
diff --git a/crates/router/src/core/payments/flows/authorize_flow.rs b/crates/router/src/core/payments/flows/authorize_flow.rs
index a5132e4a34..f891f44f09 100644
--- a/crates/router/src/core/payments/flows/authorize_flow.rs
+++ b/crates/router/src/core/payments/flows/authorize_flow.rs
@@ -140,7 +140,7 @@ impl Feature<api::Authorize, types::PaymentsAuthorizeData> for types::PaymentsAu
resp.payment_method_id = payment_method_id.clone();
resp.payment_method_status = payment_method_status;
}
- Err(_) => logger::error!("Save pm to locker failed"),
+ Err(err) => logger::error!("Save pm to locker failed : {err:?}"),
}
Ok(resp)