Skip to content

Commit

Permalink
Remove span event log churn
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
blt committed Oct 2, 2024
1 parent 18884b1 commit ce79fbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions lading/src/bin/lading.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions lading/src/generator/file_gen/logrotate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ impl Child {
names.push(pth);
}

info!("names: {names:?}");

Self {
names,
bytes_per_second,
Expand Down

0 comments on commit ce79fbc

Please sign in to comment.