Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Jul 19, 2024
1 parent 13ddaac commit 09b89c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
3 changes: 1 addition & 2 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
9 changes: 2 additions & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::LoggerHandle, flexi_logger::FlexiLoggerError> {
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!(
Expand Down

0 comments on commit 09b89c7

Please sign in to comment.