log where we are listening at/on

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2023-12-25 15:11:38 -05:00 committed by June
parent 7e447765fe
commit 91c7c15bb3

View file

@ -268,6 +268,8 @@ async fn run_server() -> io::Result<()> {
#[cfg(feature = "systemd")] #[cfg(feature = "systemd")]
let _ = sd_notify::notify(true, &[sd_notify::NotifyState::Ready]); let _ = sd_notify::notify(true, &[sd_notify::NotifyState::Ready]);
info!("Listening at {:?}", path);
let server = Server::builder(socket).serve(app); let server = Server::builder(socket).serve(app);
let graceful = server.with_graceful_shutdown(async { let graceful = server.with_graceful_shutdown(async {
rx.await.ok(); rx.await.ok();
@ -284,6 +286,8 @@ async fn run_server() -> io::Result<()> {
#[cfg(feature = "systemd")] #[cfg(feature = "systemd")]
let _ = sd_notify::notify(true, &[sd_notify::NotifyState::Ready]); let _ = sd_notify::notify(true, &[sd_notify::NotifyState::Ready]);
info!("Listening on {}", addr);
server.await? server.await?
} }
None => { None => {
@ -291,6 +295,8 @@ async fn run_server() -> io::Result<()> {
#[cfg(feature = "systemd")] #[cfg(feature = "systemd")]
let _ = sd_notify::notify(true, &[sd_notify::NotifyState::Ready]); let _ = sd_notify::notify(true, &[sd_notify::NotifyState::Ready]);
info!("Listening on {}", addr);
server.await? server.await?
} }
} }