From e74134d9ad985bbd53b183b96a56ef24faf18ef1 Mon Sep 17 00:00:00 2001 From: Karcsesz Date: Wed, 14 Feb 2024 21:21:16 +0100 Subject: [PATCH] Log what address and port the server is bound to --- src/server/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server/mod.rs b/src/server/mod.rs index 0b7eddb..c2b53ea 100644 --- a/src/server/mod.rs +++ b/src/server/mod.rs @@ -65,7 +65,9 @@ async fn async_main( .route("/.well-known/webfinger", get(run_webfinger_query)) .with_state(datastore); + debug!("Binding to {listen_address}"); let listener = tokio::net::TcpListener::bind(listen_address).await.unwrap(); + info!("Bound to {}", listener.local_addr()?); axum::serve(listener, router) .with_graceful_shutdown(graceful_shutdown_handler()) .await