diff --git a/src/cli.rs b/src/cli.rs index bd47093..3a7f52a 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -232,9 +232,8 @@ pub fn run(sub: Subcommand, no_manifest_update: bool, try_manifest_update: bool) log::info!("beginning backup with {} steps", games.len()); let mut info: Vec<_> = games - .par_iter() + .iter() .enumerate() - .progress_with(scan_progress_bar(games.len() as u64)) .filter_map(|(i, name)| { log::trace!("step {i} / {}: {name}", games.len()); let game = &manifest.0[name]; diff --git a/src/main.rs b/src/main.rs index a54392a..193da08 100644 --- a/src/main.rs +++ b/src/main.rs @@ -25,15 +25,10 @@ use crate::{ /// We should also avoid doing this if we're just going to relaunch into detached mode anyway. /// https://docs.rs/flexi_logger/0.23.1/flexi_logger/error_info/index.html#write fn prepare_logging() -> Result { - flexi_logger::Logger::try_with_env_or_str("ludusavi=warn") + flexi_logger::Logger::try_with_env_or_str("ludusavi=trace") .unwrap() .log_to_file(flexi_logger::FileSpec::default().directory(app_dir().as_std_path_buf().unwrap())) - .write_mode(flexi_logger::WriteMode::Async) - .rotate( - flexi_logger::Criterion::Size(1024 * 1024 * 10), - flexi_logger::Naming::Timestamps, - flexi_logger::Cleanup::KeepLogFiles(4), - ) + .write_mode(flexi_logger::WriteMode::Direct) .use_utc() .format_for_files(|w, now, record| { write!(