From 4518724706b81c00c9b7d746d1553dd0996701f2 Mon Sep 17 00:00:00 2001 From: Kuba Jaroszewski Date: Tue, 29 Aug 2023 10:04:31 +0200 Subject: [PATCH] Fix build for tracing feature --- app/src/main.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/app/src/main.rs b/app/src/main.rs index 08580ef46d..5fe5559c30 100644 --- a/app/src/main.rs +++ b/app/src/main.rs @@ -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(())