Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion opsqueue/app/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ pub async fn async_main() {
"Startup of Opsqueue ({}) complete.",
opsqueue::version_info()
);
tracing::info!("Listening on {}", &server_addr);

tokio::signal::ctrl_c()
.await
Expand Down
7 changes: 6 additions & 1 deletion opsqueue/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ pub async fn serve_producer_and_consumer(
prometheus_config.clone(),
);
let listener = tokio::net::TcpListener::bind(server_addr).await?;

match listener.local_addr() {
Ok(addr) => tracing::info!("Server listening on {addr}"),
Err(err) => tracing::warn!(
"Could not get locally bound address of the server, tried binding on {server_addr}: {err}"
),
}
axum::serve(listener, router)
.with_graceful_shutdown(cancellation_token.clone().cancelled_owned())
.await?;
Expand Down