move logging for clarity

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