Skip to content

Commit 9bd202e

Browse files
committed
fix: inadequate logs
1 parent 1c1848e commit 9bd202e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/endpoint/root.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ pub async fn post(Json(payload): Json<PostPayload>) -> impl IntoResponse {
4141
let services = match ServicesConfig::read() {
4242
Some(s) => s,
4343
None => {
44+
tracing::error!("failed to read services config");
4445
return (
4546
StatusCode::INTERNAL_SERVER_ERROR,
4647
"failed to read services config",
@@ -57,6 +58,7 @@ pub async fn post(Json(payload): Json<PostPayload>) -> impl IntoResponse {
5758
{
5859
Some(s) => s,
5960
None => {
61+
tracing::error!("service with label '{}' not found", payload.service_label);
6062
return (
6163
StatusCode::BAD_REQUEST,
6264
format!("service with label '{}' not found", payload.service_label),

0 commit comments

Comments
 (0)