Skip to content

Commit

Permalink
Fix build for tracing feature
Browse files Browse the repository at this point in the history
  • Loading branch information
pierd committed Aug 29, 2023
1 parent 17c3be7 commit 4518724
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions app/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,14 @@ fn setup_logging() -> anyhow::Result<()> {

// otherwise use the default format
layered_registry
.with(tracing_subscriber::fmt::Layer::new().with_timer(
tracing_subscriber::fmt::time::LocalTime::new(time::macros::format_description!(
"[hour]:[minute]:[second]"
)),
))
.with(
tracing_subscriber::fmt::Layer::new().with_timer(
tracing_subscriber::fmt::time::LocalTime::new(
time::format_description::parse("[hour]:[minute]:[second]")
.expect("format string should be valid!"),
),
),
)
.try_init()?;

Ok(())
Expand Down

0 comments on commit 4518724

Please sign in to comment.