Skip to content

Commit

Permalink
fix: Only add console_layer once
Browse files Browse the repository at this point in the history
  • Loading branch information
Nereuxofficial committed Aug 13, 2023
1 parent 4cb17af commit 6b8a30a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6b8a30a

Please sign in to comment.