From ce79fbcc335e6d218d30f72ed3333d4522f5c393 Mon Sep 17 00:00:00 2001 From: "Brian L. Troutwine" Date: Mon, 30 Sep 2024 17:33:07 -0700 Subject: [PATCH] Remove span event log churn This commit removes every span event by configuration. It's not useful information in logs per se and really does muddy up any analysis of the logs by a human. Signed-off-by: Brian L. Troutwine --- lading/src/bin/lading.rs | 3 +-- lading/src/generator/file_gen/logrotate.rs | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lading/src/bin/lading.rs b/lading/src/bin/lading.rs index 563d575ea..bbfd8c73f 100644 --- a/lading/src/bin/lading.rs +++ b/lading/src/bin/lading.rs @@ -30,7 +30,7 @@ use tokio::{ time::{self, sleep, Duration}, }; use tracing::{debug, error, info, info_span, warn, Instrument}; -use tracing_subscriber::{fmt::format::FmtSpan, util::SubscriberInitExt, EnvFilter}; +use tracing_subscriber::{util::SubscriberInitExt, EnvFilter}; #[derive(thiserror::Error, Debug)] enum Error { @@ -628,7 +628,6 @@ fn run_extra_cmds(cmds: ExtraCommands) -> Result<(), Error> { fn main() -> Result<(), Error> { tracing_subscriber::fmt() - .with_span_events(FmtSpan::FULL) .with_env_filter(EnvFilter::from_default_env()) .with_ansi(false) .finish() diff --git a/lading/src/generator/file_gen/logrotate.rs b/lading/src/generator/file_gen/logrotate.rs index 26f5e6bcb..b6005b91d 100644 --- a/lading/src/generator/file_gen/logrotate.rs +++ b/lading/src/generator/file_gen/logrotate.rs @@ -239,6 +239,8 @@ impl Child { names.push(pth); } + info!("names: {names:?}"); + Self { names, bytes_per_second,