use std::sync::Once; static INIT: Once = Once::new(); pub fn setup() { INIT.call_once(|| { tracing_subscriber::fmt() .with_test_writer() .with_max_level(tracing::Level::WARN) .init(); }); }