Log better

This commit is contained in:
Maix0 2024-06-25 19:37:28 +02:00
parent 2144aef0b8
commit 38ad623983

View file

@ -33,12 +33,13 @@ async fn main() {
let listener = tokio::net::TcpListener::bind("127.0.0.1:3000") let listener = tokio::net::TcpListener::bind("127.0.0.1:3000")
.await .await
.unwrap(); .unwrap();
tracing::debug!("listening on {}", listener.local_addr().unwrap()); tracing::info!("listening on {}", listener.local_addr().unwrap());
axum::serve(listener, app).await.unwrap(); axum::serve(listener, app).await.unwrap();
} }
// basic handler that responds with a static string // basic handler that responds with a static string
async fn root() -> Html<&'static str> { async fn root() -> Html<&'static str> {
info!("Request link page");
Html( Html(
r#" r#"
<a href="/restart">restart</a><br> <a href="/restart">restart</a><br>