Improve tracing output

This commit is contained in:
Mike Dilger 2022-12-26 18:50:04 +13:00
parent 26a6261312
commit 8b2e8bd4e5

View File

@ -22,7 +22,11 @@ use std::ops::DerefMut;
use std::{mem, thread}; use std::{mem, thread};
fn main() -> Result<(), Error> { 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) // Setup the database (possibly create, possibly upgrade)
crate::db::setup_database()?; crate::db::setup_database()?;