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