mirror of
https://git.proxmox.com/git/rustc
synced 2025-11-03 07:04:38 +00:00
11 lines
300 B
Rust
11 lines
300 B
Rust
use tracing_subscriber::{filter::LevelFilter, prelude::*};
|
|
|
|
#[test]
|
|
fn registry_sets_max_level_hint() {
|
|
tracing_subscriber::registry()
|
|
.with(tracing_subscriber::fmt::layer())
|
|
.with(LevelFilter::DEBUG)
|
|
.init();
|
|
assert_eq!(LevelFilter::current(), LevelFilter::DEBUG);
|
|
}
|