From ea73db714c4c2e174c05f3c143a0e5560eb073be Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Mon, 23 Dec 2024 09:44:02 +0000 Subject: [PATCH] chore: include file name and line number in tracing output --- src/lib.rs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index d68d503..b0a697c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,15 +1,21 @@ // use std::path::PathBuf; -use crate::{nextcloud::client::DeckClient, trello::client::TrelloClient}; use clap::Parser; use color_eyre::eyre::eyre; use config::AppConfig; -use execute::Execute; -use kxio::fs::TempFileSystem; -use kxio::{fs::FileSystem, kxeprintln as e, kxprintln as p, net::Net, print::Printer}; +use kxio::{ + fs::{FileSystem, TempFileSystem}, + kxeprintln as e, kxprintln as p, + net::Net, + print::Printer, +}; use tokio::time::Instant; +use crate::{nextcloud::client::DeckClient, trello::client::TrelloClient}; + +use execute::Execute; + mod api_result; mod check; mod config; @@ -118,6 +124,8 @@ pub async fn run(ctx: &Ctx, commands: &Commands) -> color_eyre::Result<()> { tracing_subscriber::FmtSubscriber::builder() .with_max_level(tracing::Level::TRACE) .with_env_filter("trace,hyper_util=info,kxio=info") + .with_file(true) + .with_line_number(true) .finish(), )?; }