From 6b8a30ae2bbf459624d7cfb5489b08494f0a3415 Mon Sep 17 00:00:00 2001 From: Nereuxofficial <37740907+Nereuxofficial@users.noreply.github.com> Date: Sun, 13 Aug 2023 20:21:55 +0200 Subject: [PATCH] fix: Only add console_layer once --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();