Only log warnings in tests

This commit is contained in:
nora 2022-12-21 19:33:35 +01:00
parent 26bc2fb857
commit 63c49b8dfa
3 changed files with 6 additions and 5 deletions

View file

@ -110,10 +110,10 @@ pub fn minimize(options: Options) -> Result<()> {
Ok(())
}
pub fn init_recommended_tracing_subscriber() {
pub fn init_recommended_tracing_subscriber(default_level: Level) {
let registry = Registry::default().with(
EnvFilter::builder()
.with_default_directive(Level::INFO.into())
.with_default_directive(default_level.into())
.from_env()
.unwrap(),
);