From 9e92c5c49f4736ea6fb789d9dbbae7461c02570e Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sat, 2 May 2026 20:10:24 -0400 Subject: [PATCH] Add better logging. --- src/webhook.rs | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/webhook.rs b/src/webhook.rs index 5556afe..87d2c21 100644 --- a/src/webhook.rs +++ b/src/webhook.rs @@ -77,14 +77,17 @@ pub(crate) async fn hook( message: None, }), ), - Err(_) => ( - // StatusCode::INTERNAL_SERVER_ERROR, - StatusCode::OK, - Json(HookResponse { - ok: false, - message: Some("Failed to handle push event.".to_string()), - }), - ), + Err(e) => { + tracing::error!("Failed to handle push event: {}", e); + ( + // StatusCode::INTERNAL_SERVER_ERROR, + StatusCode::OK, + Json(HookResponse { + ok: false, + message: Some("Failed to handle push event.".to_string()), + }), + ) + } } } HookRequest::Unrecognized(payload) => (