amqprs 2.1.5

AMQP 0-9-1 client implementation for RabbitMQ
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[cfg(test)]
use tracing_subscriber::{fmt, prelude::*, EnvFilter};

//////////////////////////////////////////////////////////////////
// construct a subscriber that prints formatted traces to stdout
#[cfg(test)]
pub fn setup_logging() {
    // global subscriber with log level according to RUST_LOG
    tracing_subscriber::registry()
        .with(fmt::layer())
        .with(EnvFilter::from_default_env())
        .try_init()
        .ok();
}