From 1033df0ed479af784355fb4ec76ae5052601a602 Mon Sep 17 00:00:00 2001 From: zonyitoo Date: Fri, 16 Feb 2024 15:37:37 +0800 Subject: [PATCH] feat: remove logging ascii escape color --- src/logging/tracing.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/logging/tracing.rs b/src/logging/tracing.rs index 04e7049dab69..49a735da746f 100644 --- a/src/logging/tracing.rs +++ b/src/logging/tracing.rs @@ -1,7 +1,5 @@ //! Logging facilities with tracing -use std::io::IsTerminal; - use time::UtcOffset; use tracing::level_filters::LevelFilter; use tracing_subscriber::{fmt::time::OffsetTime, EnvFilter, FmtSubscriber}; @@ -23,10 +21,6 @@ pub fn init_with_config(bin_name: &str, config: &LogConfig) { } }); - if std::io::stdout().is_terminal() { - builder = builder.with_ansi(true); - } - if debug_level >= 1 { builder = builder.with_target(true).with_thread_ids(true).with_thread_names(true);