fix: Change the default test log level to warn

This commit is contained in:
teor 2020-07-27 10:24:29 +10:00 committed by Deirdre Connolly
parent 2d3926e800
commit a60299d86c
1 changed files with 2 additions and 1 deletions

View File

@ -10,8 +10,9 @@ static INIT: Once = Once::new();
pub fn init() {
INIT.call_once(|| {
let fmt_layer = fmt::layer().with_target(false);
// Use the RUST_LOG env var, or 'warn' by default
let filter_layer = EnvFilter::try_from_default_env()
.or_else(|_| EnvFilter::try_new("info"))
.or_else(|_| EnvFilter::try_new("warn"))
.unwrap();
tracing_subscriber::registry()