diff --git a/src/http_server.rs b/src/http_server.rs index b00f7c8..c315544 100644 --- a/src/http_server.rs +++ b/src/http_server.rs @@ -62,7 +62,7 @@ async fn add_rating( { Ok(_) => (StatusCode::OK, "Done.").into_response(), Err(e) => { - println!("HTTP error: {e}"); + eprintln!("HTTP error: {e}"); (StatusCode::BAD_REQUEST, e.to_string()).into_response() } } @@ -88,7 +88,7 @@ async fn add_userid(Path(user_id): Path, State(shared): State) { Ok(_) => (StatusCode::OK, "Done.").into_response(), Err(e) => { - println!("HTTP error: {e}"); + eprintln!("HTTP error: {e}"); (StatusCode::BAD_REQUEST, e.to_string()).into_response() } }