From 772bda8e934d094dfe0bd06c19ead65b4c41c9b4 Mon Sep 17 00:00:00 2001 From: Zynh Ludwig Date: Wed, 28 Aug 2024 19:03:47 -0700 Subject: [PATCH] move logging for clarity --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 5fff09e..d562410 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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(()) }