From 8b2e8bd4e51d31c796f4874f18eca270308e0376 Mon Sep 17 00:00:00 2001 From: Mike Dilger Date: Mon, 26 Dec 2022 18:50:04 +1300 Subject: [PATCH] Improve tracing output --- src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 88f138b7..9038d013 100644 --- a/src/main.rs +++ b/src/main.rs @@ -22,7 +22,11 @@ use std::ops::DerefMut; use std::{mem, thread}; fn main() -> Result<(), Error> { - tracing_subscriber::fmt::init(); + tracing_subscriber::fmt::fmt() + .without_time() + .with_file(cfg!(debug_assertions)) + .with_line_number(cfg!(debug_assertions)) + .init(); // Setup the database (possibly create, possibly upgrade) crate::db::setup_database()?;