diff --git a/src/init_tracing.rs b/src/init_tracing.rs index bf4cd8a..24900f3 100644 --- a/src/init_tracing.rs +++ b/src/init_tracing.rs @@ -44,8 +44,6 @@ where .with(ErrorLayer::default()); if let Some(address) = tracing.console.address { - println!("Starting console on {address}"); - let console_layer = ConsoleLayer::builder() .event_buffer_capacity(tracing.console.buffer_capacity) .server_addr(address) @@ -53,7 +51,9 @@ where let subscriber = subscriber.with(console_layer); - with_subscriber(subscriber, &tracing.opentelemetry) + with_subscriber(subscriber, &tracing.opentelemetry)?; + tracing::info!("Starting console on {address}"); + Ok(()) } else { with_subscriber(subscriber, &tracing.opentelemetry) } diff --git a/src/lib.rs b/src/lib.rs index 0343111..6b1e602 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2077,6 +2077,7 @@ impl PictRsConfiguration { PrometheusBuilder::new() .with_http_listener(addr) .install()?; + tracing::info!("Starting prometheus endpoint on {addr}"); } Ok(self)