Skip to content

Commit

Permalink
feat: remove logging ascii escape color
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Feb 16, 2024
1 parent 186c088 commit 1033df0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/logging/tracing.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand All @@ -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);

Expand Down

0 comments on commit 1033df0

Please sign in to comment.