1
0
Fork 0

move logging for clarity

Zynh Ludwig 2024-08-28 19:03:47 -07:00
parent 7444fc4f9b
commit 772bda8e93
1 changed files with 2 additions and 1 deletions

View File

@ -87,7 +87,6 @@ async fn main() -> io::Result<()> {
// Server creation
let addr = SocketAddr::from(([0, 0, 0, 0], 3000));
tracing::debug!("listening on http://{}/", addr);
let listener = tokio::net::TcpListener::bind(&addr).await.unwrap();
axum::serve(
listener,
@ -96,6 +95,8 @@ async fn main() -> io::Result<()> {
.await
.unwrap();
tracing::debug!("listening on http://{}/", addr);
Ok(())
}