mirror of
https://git.madhouse-project.org/algernon/iocaine.git
synced 2025-02-24 10:28:48 +01:00
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:
parent
0fa4f666f5
commit
598338094c
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue