diff --git a/hello-tracing-gateway/src/api.rs b/hello-tracing-gateway/src/api.rs index f5f41ca..9ce9fab 100644 --- a/hello-tracing-gateway/src/api.rs +++ b/hello-tracing-gateway/src/api.rs @@ -19,7 +19,7 @@ use tokio::{ }; use tower::{Layer, ServiceBuilder}; use tower_http::trace::TraceLayer; -use tracing::{field, info_span, trace_span, Span}; +use tracing::{field, info, info_span, trace_span, Span}; #[derive(Debug, Clone, Deserialize)] pub struct Config { @@ -44,6 +44,8 @@ pub async fn serve(config: Config, backend: Backend) -> Result<()> { let listener = TcpListener::bind((address, port)) .await .context("bind TcpListener")?; + info!(?address, port, "listening to TCP connections"); + axum::serve(listener, app.into_make_service()) .with_graceful_shutdown(shutdown_signal()) .await diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 1de01fa..2e2b8c8 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,2 +1,2 @@ [toolchain] -channel = "1.81.0" +channel = "1.82.0"