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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
feat(response-log): add logging to the response (#1433)
Nishant Joshi96c5efea2b0e
diff --git a/crates/router/src/services/api.rs b/crates/router/src/services/api.rsindex d24daeaec1..4ed2ce9d7a 100644--- a/crates/router/src/services/api.rs+++ b/crates/router/src/services/api.rs@@ -604,6 +604,7 @@ whereT: Debug,U: auth::AuthInfo,A: AppStateInfo,+ ApplicationResponse<Q>: Debug,CustomResult<ApplicationResponse<Q>, E>:ReportSwitchExt<ApplicationResponse<Q>, api_models::errors::types::ApiErrorResponse>,{@@ -620,7 +621,10 @@ where&flow,).await- {+ .map(|response| {+ logger::info!(api_response =? response);+ response+ }) {Ok(ApplicationResponse::Json(response)) => match serde_json::to_string(&response) {Ok(res) => http_response_json(res),Err(_) => http_response_err(