feat: rework logs (#2988)

This commit is contained in:
Bjerg
2023-06-05 19:43:14 +02:00
committed by GitHub
parent 643b3811c2
commit d2c68edf23
24 changed files with 74 additions and 70 deletions

View File

@ -44,7 +44,7 @@ where
{
// TODO: Auto-detect
let with_ansi = std::env::var("RUST_LOG_STYLE").map(|val| val != "never").unwrap_or(true);
let with_target = std::env::var("RUST_LOG_TARGET").map(|val| val != "0").unwrap_or(false);
let with_target = std::env::var("RUST_LOG_TARGET").map(|val| val != "0").unwrap_or(true);
let filter =
EnvFilter::builder().with_default_directive(default_directive.into()).from_env_lossy();