diff --git a/src/main.rs b/src/main.rs index 364610b..00fc858 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,6 +4,7 @@ use color_eyre::eyre::Result; use rusqlite::Connection as DbConnection; use rusqlite::NO_PARAMS; use tracing::info; +use tracing_subscriber::EnvFilter; mod db; mod migrations; @@ -35,8 +36,8 @@ fn main() -> Result<()> { tracing_subscriber::fmt() .with_ansi(true) .with_env_filter( - tracing_subscriber::EnvFilter::try_from_default_env() - .unwrap_or_else(|_| tracing_subscriber::EnvFilter::new("info")), + EnvFilter::try_from_default_env() + .unwrap_or_else(|_| EnvFilter::new("info")), ) .init(); color_eyre::install()?; diff --git a/src/section_runner.rs b/src/section_runner.rs index 557a1e3..19715dd 100644 --- a/src/section_runner.rs +++ b/src/section_runner.rs @@ -339,9 +339,6 @@ mod test { #[tokio::test] async fn test_cancel_run() { - env_logger::builder() - .filter_level(log::LevelFilter::Trace) - .init(); let (sections, interface) = make_sections_and_interface(); let mut runner = SectionRunner::new(interface.clone());