diff --git a/src/api/routes.rs b/src/api/routes.rs index db7234a..d628338 100644 --- a/src/api/routes.rs +++ b/src/api/routes.rs @@ -152,9 +152,21 @@ pub async fn summary(State(state): State) -> Result Err(StatusCode::INTERNAL_SERVER_ERROR), + Err(e) => { + tracing::error!( + error = e.to_string(), + "Error returned from controller when fetching network state for /summary" + ); + Err(StatusCode::INTERNAL_SERVER_ERROR) + } }, - Err(_e) => Err(StatusCode::INTERNAL_SERVER_ERROR), + Err(e) => { + tracing::error!( + error = e.to_string(), + "Error receving result from channel when fetching network state for /summary" + ); + Err(StatusCode::INTERNAL_SERVER_ERROR) + } } }