feat: add logging

This commit is contained in:
2026-03-26 21:30:48 +01:00
parent eddb3acacd
commit 90dde65c91
3 changed files with 9 additions and 1 deletions

View File

@@ -45,6 +45,8 @@ pub mod utils;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let args = args::Args::parse();
#[cfg(feature = "log")]
env_logger::init_from_env(env_logger::Env::new().default_filter_or("info"));
let conf = if let Some(conf) = File::try_open(&args.conf) {
conf::Config::from_toml_file(&mut conf?)?
} else {