1 2 3 4 5 6 7 8 9 10
#![cfg(feature = "fmt")] use tracing_subscriber::filter::LevelFilter; #[test] fn fmt_sets_max_level_hint() { tracing_subscriber::fmt() .with_max_level(LevelFilter::DEBUG) .init(); assert_eq!(LevelFilter::current(), LevelFilter::DEBUG); }