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