log where we are listening at/on
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
7e447765fe
commit
91c7c15bb3
1 changed files with 6 additions and 0 deletions
|
@ -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?
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue