feat: remove logging ascii escape color

This commit is contained in:
zonyitoo
2024-02-16 15:37:37 +08:00
parent 186c0883e7
commit 1033df0ed4
-6
View File
@@ -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);