Skip to content

Commit

Permalink
Compact format for logs
Browse files Browse the repository at this point in the history
  • Loading branch information
akoshelev committed Dec 6, 2023
1 parent 0a175cf commit 9fb87c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ipa-core/src/cli/verbosity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use tracing::{info, metadata::LevelFilter, Level};
use tracing_subscriber::{
fmt, fmt::format::FmtSpan, layer::SubscriberExt, util::SubscriberInitExt, EnvFilter,
};
use tracing_subscriber::fmt::format;

use crate::{
cli::{install_collector, metric_collector::CollectorHandle},
Expand Down Expand Up @@ -35,6 +36,7 @@ impl Verbosity {
let fmt_layer = fmt::layer()
.with_span_events(FmtSpan::NEW | FmtSpan::CLOSE)
.with_ansi(std::io::stderr().is_terminal())
.event_format(format().compact())
.with_writer(stderr);

tracing_subscriber::registry()
Expand Down

0 comments on commit 9fb87c6

Please sign in to comment.