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 std::path::PathBuf;
|
||||||
|
|
||||||
use crate::{nextcloud::client::DeckClient, trello::client::TrelloClient};
|
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
use color_eyre::eyre::eyre;
|
use color_eyre::eyre::eyre;
|
||||||
use config::AppConfig;
|
use config::AppConfig;
|
||||||
use execute::Execute;
|
use kxio::{
|
||||||
use kxio::fs::TempFileSystem;
|
fs::{FileSystem, TempFileSystem},
|
||||||
use kxio::{fs::FileSystem, kxeprintln as e, kxprintln as p, net::Net, print::Printer};
|
kxeprintln as e, kxprintln as p,
|
||||||
|
net::Net,
|
||||||
|
print::Printer,
|
||||||
|
};
|
||||||
use tokio::time::Instant;
|
use tokio::time::Instant;
|
||||||
|
|
||||||
|
use crate::{nextcloud::client::DeckClient, trello::client::TrelloClient};
|
||||||
|
|
||||||
|
use execute::Execute;
|
||||||
|
|
||||||
mod api_result;
|
mod api_result;
|
||||||
mod check;
|
mod check;
|
||||||
mod config;
|
mod config;
|
||||||
|
@ -118,6 +124,8 @@ pub async fn run(ctx: &Ctx, commands: &Commands) -> color_eyre::Result<()> {
|
||||||
tracing_subscriber::FmtSubscriber::builder()
|
tracing_subscriber::FmtSubscriber::builder()
|
||||||
.with_max_level(tracing::Level::TRACE)
|
.with_max_level(tracing::Level::TRACE)
|
||||||
.with_env_filter("trace,hyper_util=info,kxio=info")
|
.with_env_filter("trace,hyper_util=info,kxio=info")
|
||||||
|
.with_file(true)
|
||||||
|
.with_line_number(true)
|
||||||
.finish(),
|
.finish(),
|
||||||
)?;
|
)?;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue