diff --git a/inoculate/Cargo.toml b/inoculate/Cargo.toml index 3163fc75..18784fd9 100644 --- a/inoculate/Cargo.toml +++ b/inoculate/Cargo.toml @@ -13,7 +13,7 @@ license = "MIT" [dependencies] clap = { version = "4.1.8", features = ["derive", "env"] } tracing = "0.1.23" -tracing-subscriber = { version = "0.3.1", features = ["env-filter"] } +tracing-subscriber = "0.3.16" tracing-error = "0.2" color-eyre = "0.6" bootloader = "0.11.2" diff --git a/inoculate/src/term.rs b/inoculate/src/term.rs index 781b59ce..05087a19 100644 --- a/inoculate/src/term.rs +++ b/inoculate/src/term.rs @@ -33,7 +33,7 @@ pub struct OutputOptions { global = true, group = ARG_GROUP, )] - pub log: String, + pub log: tracing_subscriber::filter::Targets, } #[derive(Copy, Clone, Debug, Eq, PartialEq, clap::ValueEnum)] diff --git a/inoculate/src/trace.rs b/inoculate/src/trace.rs index c1d95846..c682e589 100644 --- a/inoculate/src/trace.rs +++ b/inoculate/src/trace.rs @@ -23,7 +23,7 @@ impl OutputOptions { tracing_subscriber::registry() .with(fmt) .with(tracing_error::ErrorLayer::default()) - .with(self.log.parse::()?) + .with(self.log.clone()) .try_init()?; Ok(()) }