Fix the tokio-console feature

Don't initialize `tracing_subscriber` if the `tokio-console` feature is
enabled - they conflict.

Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
This commit is contained in:
Gergely Nagy 2025-01-16 14:20:38 +01:00
parent 0fa4f666f5
commit 598338094c
No known key found for this signature in database

View file

@ -21,6 +21,7 @@ async fn main() -> Result<()> {
#[cfg(all(feature = "tokio-console", not(tokio_unstable)))]
compile_error!("`tokio-console` requires manually enabling the `--cfg tokio_unstable` rust flag during compilation!");
#[cfg(not(feature = "tokio-console"))]
tracing_subscriber::fmt::init();
let args = cli::Args::parse();