Use compact tracing formatting

This commit is contained in:
Ivan Molodetskikh
2023-08-07 19:53:19 +04:00
parent 7c8ea3fd70
commit d182996c8c

View File

@@ -16,9 +16,12 @@ pub struct CalloopData {
fn main() -> Result<(), Box<dyn std::error::Error>> {
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<CalloopData> = EventLoop::try_new()?;