Add better logging.
Some checks failed
semver Build semver has failed
format Build format has failed
clippy Build clippy has failed
rust-test Build rust-test has failed
build Build build has failed

This commit is contained in:
Tom Alexander
2026-05-02 20:10:24 -04:00
parent cedf2eef54
commit db12d2397e

View File

@@ -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) => (