diff --git a/src/bin/shrupl.rs b/src/bin/shrupl.rs index 214aaea..9ae6ede 100644 --- a/src/bin/shrupl.rs +++ b/src/bin/shrupl.rs @@ -8,7 +8,7 @@ use std::{ use clap::Parser; use console::{StyledObject, style}; -use log::{debug, info, trace}; +use log::{info, trace}; use shrupl::{ AppState, Cli, error, @@ -90,14 +90,14 @@ fn main() { match p { // Error 404 (File not found) error::Parameter::FileID(fid) => { - debug!("requeueing file {fid:?}"); + info!("requeueing file {fid:?}"); state.abort_upload(); } // Error 404 (Share not found) error::Parameter::ShareID(sid) => { // TODO ask - debug!("rebuilding share {sid:?}"); + info!("rebuilding share {sid:?}"); // rebuild share let Ok(s) = state.rebuild_share(&args) else { @@ -114,7 +114,7 @@ fn main() { }; tries += 1; - debug!("State rewound, retrying last chunk (tries: {tries})"); + info!("State rewound, retrying last chunk (tries: {tries})"); state = s; } } diff --git a/src/cli.rs b/src/cli.rs index 8013f9c..491be5d 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -52,7 +52,7 @@ pub struct Cli { /// Chunk size for uploading, in MiB #[arg( short, long, - default_value_t = 10, value_name = "M", + default_value_t = 4, value_name = "M", value_parser = value_parser!(u32).range(1..).map(|s| s as usize), )] pub chunk_size: usize,