summaryrefslogtreecommitdiffstats
path: root/vendor/tracing-log/tests/reexport_log_crate.rs
blob: 1540941f2f13b53f1cacff0b1b1beae4ab14fede (plain)
1
2
3
4
5
6
7
8
9
10
use tracing_log::{log::LevelFilter, LogTracer};

/// This test makes sure we can access `log::LevelFilter` through the `tracing_log` crate and don't
/// have to depend on `log` separately.
///
/// See https://github.com/tokio-rs/tracing/issues/552.
#[test]
fn can_initialize_log_tracer_with_level() {
    LogTracer::init_with_filter(LevelFilter::Error).unwrap();
}