Skip to content

Commit c99472e

Browse files
committed
feat: log available services
1 parent 9bd202e commit c99472e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/endpoint/root.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ pub async fn post(Json(payload): Json<PostPayload>) -> impl IntoResponse {
5959
Some(s) => s,
6060
None => {
6161
tracing::error!("service with label '{}' not found", payload.service_label);
62+
tracing::trace!(
63+
"available services: {:?}",
64+
services
65+
.services
66+
.iter()
67+
.map(|s| s.service_label.clone())
68+
.collect::<Vec<_>>(),
69+
);
6270
return (
6371
StatusCode::BAD_REQUEST,
6472
format!("service with label '{}' not found", payload.service_label),

0 commit comments

Comments
 (0)