summaryrefslogtreecommitdiff
path: root/tests/support/common.rs
blob: 8db5c52b75428279968e688be03d8c758b6167fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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();
    });
}