chore: include file name and line number in tracing output
This commit is contained in:
parent
404782453a
commit
ea73db714c
1 changed files with 12 additions and 4 deletions
16
src/lib.rs
16
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(),
|
||||
)?;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue