diff --git a/crates/xtask-bump-check/src/main.rs b/crates/xtask-bump-check/src/main.rs index 6f9e2e94cb2..0461ab91aca 100644 --- a/crates/xtask-bump-check/src/main.rs +++ b/crates/xtask-bump-check/src/main.rs @@ -20,6 +20,7 @@ fn setup_logger() { let env = tracing_subscriber::EnvFilter::from_env("CARGO_LOG"); tracing_subscriber::fmt() + .with_ansi(std::io::IsTerminal::is_terminal(&std::io::stderr())) .with_writer(std::io::stderr) .with_env_filter(env) .init(); diff --git a/src/bin/cargo/main.rs b/src/bin/cargo/main.rs index e9c717b9d4e..d96c1423d58 100644 --- a/src/bin/cargo/main.rs +++ b/src/bin/cargo/main.rs @@ -41,6 +41,7 @@ fn setup_logger() { let env = tracing_subscriber::EnvFilter::from_env("CARGO_LOG"); tracing_subscriber::fmt() + .with_ansi(std::io::IsTerminal::is_terminal(&std::io::stderr())) .with_writer(std::io::stderr) .with_env_filter(env) .init();