mirror of
https://github.com/lldap/lldap.git
synced 2026-06-10 13:28:24 +00:00
11 lines
275 B
Rust
11 lines
275 B
Rust
#[cfg(test)]
|
|
pub fn init_for_tests() {
|
|
if let Err(e) = tracing_subscriber::FmtSubscriber::builder()
|
|
.with_max_level(tracing::Level::DEBUG)
|
|
.with_test_writer()
|
|
.try_init()
|
|
{
|
|
log::warn!("Could not set up test logging: {:#}", e);
|
|
}
|
|
}
|