Files
Marlin/libmarlin/src/logging_tests.rs
thePR0M3TH3AN a7660df45f updates
2025-05-18 21:28:05 -04:00

14 lines
352 B
Rust
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// libmarlin/src/logging_tests.rs
use super::logging;
use tracing::Level;
#[test]
fn init_sets_up_subscriber() {
// set RUST_LOG to something to test the EnvFilter path
std::env::set_var("RUST_LOG", "debug");
logging::init();
tracing::event!(Level::INFO, "this is a test log");
// if we made it here without panic, were good
}