Skip to content

Commit

Permalink
Log span close events
Browse files Browse the repository at this point in the history
  • Loading branch information
trumank committed Apr 23, 2024
1 parent 9998be3 commit 5e294df
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions mint_lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use std::{
use anyhow::{bail, Context, Result};
use fs_err as fs;
use tracing::*;
use tracing_subscriber::fmt::format::FmtSpan;

#[derive(Debug)]
pub enum DRGInstallationType {
Expand Down Expand Up @@ -186,10 +187,8 @@ pub fn setup_logging<P: AsRef<Path>>(
.with_filter(filter::Targets::new().with_target(target, Level::DEBUG));
let stderr_log = fmt::layer()
.with_writer(std::io::stderr)
.compact()
.with_level(true)
.with_target(true)
.without_time()
.event_format(tracing_subscriber::fmt::format().without_time())
.with_span_events(FmtSpan::CLOSE)
.with_filter(
EnvFilter::builder()
.with_default_directive(LevelFilter::INFO.into())
Expand Down

0 comments on commit 5e294df

Please sign in to comment.