From 91c7c15bb34b2288d0353ad0ad49d901f4b5a0ff Mon Sep 17 00:00:00 2001 From: strawberry Date: Mon, 25 Dec 2023 15:11:38 -0500 Subject: [PATCH] log where we are listening at/on Signed-off-by: strawberry --- src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.rs b/src/main.rs index 586343ea..4ec3e48f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -268,6 +268,8 @@ async fn run_server() -> io::Result<()> { #[cfg(feature = "systemd")] let _ = sd_notify::notify(true, &[sd_notify::NotifyState::Ready]); + + info!("Listening at {:?}", path); let server = Server::builder(socket).serve(app); let graceful = server.with_graceful_shutdown(async { rx.await.ok(); @@ -284,6 +286,8 @@ async fn run_server() -> io::Result<()> { #[cfg(feature = "systemd")] let _ = sd_notify::notify(true, &[sd_notify::NotifyState::Ready]); + + info!("Listening on {}", addr); server.await? } None => { @@ -291,6 +295,8 @@ async fn run_server() -> io::Result<()> { #[cfg(feature = "systemd")] let _ = sd_notify::notify(true, &[sd_notify::NotifyState::Ready]); + + info!("Listening on {}", addr); server.await? } }