diff --git a/src/main.rs b/src/main.rs index 57ec033..b09d2e6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -65,7 +65,7 @@ async fn main() -> Result { let registry = registry .with(console_layer) .with(EnvFilter::from_default_env().add_directive(Directive::from_str("tokio=trace")?)); - registry.with(console_layer).init(); + registry.init(); } #[cfg(not(feature = "tokio_console"))] tracing_subscriber::fmt::init();