feat: add logging capabilities

This commit is contained in:
Alexander Navarro 2025-05-08 16:52:01 -04:00
parent 3d12877e27
commit 56888931bd
3 changed files with 48 additions and 80 deletions

View file

@ -5,7 +5,7 @@ use readwise_bulk_upload::sql::TaskManager;
use readwise_bulk_upload::{Error, Result};
use std::fs::File;
use tracing_subscriber;
use figment::{Figment, providers::{Serialized, Env, Format}};
use figment::{Figment, providers::{Serialized, Env}};
#[tokio::main]
async fn main() -> Result<()> {
@ -15,7 +15,7 @@ async fn main() -> Result<()> {
.extract()?;
tracing_subscriber::fmt()
.with_max_level(args.verbose)
.with_max_level(args.log_level())
.init();
let file = File::open(args.path()).map_err(|_| {