Log what address and port the server is bound to

This commit is contained in:
Karcsesz 2024-02-14 21:21:16 +01:00
parent cc601fecde
commit e74134d9ad

View file

@ -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