1 Commits

Author SHA1 Message Date
Tom Alexander
db12d2397e 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
2026-05-02 21:14:51 -04:00

View File

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