feat: add logging capabilities
This commit is contained in:
parent
3d12877e27
commit
56888931bd
3 changed files with 48 additions and 80 deletions
|
|
@ -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(|_| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue