Skip to content

Commit

Permalink
fix: fix status_code being logged as string instead of number in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
SanchithHegde committed Sep 10, 2024
1 parent 49a60bf commit ac28ae4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/router/src/core/webhooks/outgoing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 delivery
Expand Down
8 changes: 4 additions & 4 deletions crates/router/src/services/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit ac28ae4

Please # to comment.