From d182996c8c983334462c666b592e391d2861cb70 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Mon, 7 Aug 2023 19:53:19 +0400 Subject: Use compact tracing formatting --- src/main.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 7e2650c6..3e285536 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,9 +16,12 @@ pub struct CalloopData { fn main() -> Result<(), Box> { if let Ok(env_filter) = tracing_subscriber::EnvFilter::try_from_default_env() { - tracing_subscriber::fmt().with_env_filter(env_filter).init(); + tracing_subscriber::fmt() + .compact() + .with_env_filter(env_filter) + .init(); } else { - tracing_subscriber::fmt().init(); + tracing_subscriber::fmt().compact().init(); } let mut event_loop: EventLoop = EventLoop::try_new()?; -- cgit