Skip to content

Commit

Permalink
🚧 outdated_pkgs: additional debug log is redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
vnepogodin committed Oct 6, 2024
1 parent 64f8b12 commit 33b35c5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,11 +425,9 @@ fn handle_outdated_pkgs(profile: &config::Profile, outdated_pkgs: &[String]) ->

// TODO(vnepogodin): make a prompt on every run here in case iteractive is on
if profile.backup && profile.backup_dir != Some(profile.repo.clone()) {
log::debug!("mv into backup dir '{outdated_pkg}'..");
log::info!("backup '{outdated_pkg_entry}'..");
handle_pkgfile_move(outdated_pkg, profile.backup_dir.as_ref().unwrap())?;
} else {
log::debug!("removing '{outdated_pkg}'..");
log::info!("rm '{outdated_pkg_entry}'..");
// we would rather be fail safe here and just report without *panicing*
if let Err(rm_err) = fs::remove_file(outdated_pkg) {
Expand Down

0 comments on commit 33b35c5

Please sign in to comment.