diff --git a/rust/optics-base/src/settings/log.rs b/rust/optics-base/src/settings/log.rs index 48f43efab..4b80bde9a 100644 --- a/rust/optics-base/src/settings/log.rs +++ b/rust/optics-base/src/settings/log.rs @@ -58,9 +58,9 @@ impl Default for Level { } } -impl Into for Level { - fn into(self) -> tracing_subscriber::filter::LevelFilter { - match self { +impl From for tracing_subscriber::filter::LevelFilter { + fn from(level: &Level) -> tracing_subscriber::filter::LevelFilter { + match level { Level::Off => tracing_subscriber::filter::LevelFilter::OFF, Level::Error => tracing_subscriber::filter::LevelFilter::ERROR, Level::Warn => tracing_subscriber::filter::LevelFilter::WARN,