Log better
This commit is contained in:
parent
2144aef0b8
commit
38ad623983
1 changed files with 2 additions and 1 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue