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
fix: fix `status_code` being logged as string instead of number in logs (#5850)
Sanchith Hegde75e8f354314e
diff --git a/crates/router/src/core/webhooks/outgoing.rs b/crates/router/src/core/webhooks/outgoing.rsindex f7dcfb7373..7b6f703f6f 100644--- a/crates/router/src/core/webhooks/outgoing.rs+++ b/crates/router/src/core/webhooks/outgoing.rs@@ -889,7 +889,7 @@ async fn error_response_handler();let error = report!(errors::WebhooksFlowError::NotReceivedByMerchant);- logger::warn!(?error, ?delivery_attempt, ?status_code, %log_message);+ logger::warn!(?error, ?delivery_attempt, status_code, %log_message);if let ScheduleWebhookRetry::WithProcessTracker(process_tracker) = schedule_webhook_retry {// Schedule a retry attempt for webhook deliverydiff --git a/crates/router/src/services/api.rs b/crates/router/src/services/api.rsindex 8c74629d9a..3f7f82c779 100644--- a/crates/router/src/services/api.rs+++ b/crates/router/src/services/api.rs@@ -383,11 +383,11 @@ pub async fn call_connector_api(let status_code = resp.status().as_u16();let elapsed_time = current_time.elapsed();logger::info!(- headers=?headers,- url=?url,- status_code=?status_code,+ ?headers,+ url,+ status_code,flow=?flow_name,- elapsed_time=?elapsed_time+ ?elapsed_time);}Err(err) => {