Respect RUST_LOG when started in terminal (#7425)

Release Notes:

- N/A
This commit is contained in:
Oliver N 2024-02-06 15:14:50 +07:00 committed by GitHub
parent c7c4166724
commit 038d2a84e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -471,6 +471,7 @@ fn init_paths() {
fn init_logger() { fn init_logger() {
if stdout_is_a_pty() { if stdout_is_a_pty() {
Builder::new() Builder::new()
.parse_default_env()
.format(|buf, record| { .format(|buf, record| {
use env_logger::fmt::Color; use env_logger::fmt::Color;