grapevine 1.0.0

A modern, asynchronous peer-to-peer gossip protocol library and application
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Common test utilities shared across integration tests.

/// Initialize test tracing (call once at the beginning of tests).
///
/// This sets up tracing for tests with DEBUG level output to the test writer.
/// Subsequent calls are safe and will be ignored.
pub fn init_tracing() {
    let _ = tracing_subscriber::fmt()
        .with_test_writer()
        .with_max_level(tracing::Level::DEBUG)
        .try_init();
}