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

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

View File

@@ -77,14 +77,17 @@ pub(crate) async fn hook(
message: None, message: None,
}), }),
), ),
Err(_) => ( Err(e) => {
tracing::error!("Failed to handle push event: {}", e);
(
// StatusCode::INTERNAL_SERVER_ERROR, // StatusCode::INTERNAL_SERVER_ERROR,
StatusCode::OK, StatusCode::OK,
Json(HookResponse { Json(HookResponse {
ok: false, ok: false,
message: Some("Failed to handle push event.".to_string()), message: Some("Failed to handle push event.".to_string()),
}), }),
), )
}
} }
} }
HookRequest::Unrecognized(payload) => ( HookRequest::Unrecognized(payload) => (