Add debug output to Store::save_to_other_location

This commit is contained in:
Matthias Beyer 2017-06-04 19:14:41 +02:00
parent c06d8c319f
commit 1c18db56e6

View file

@ -621,6 +621,7 @@ impl Store {
FileAbstraction::copy(&old_id_as_path, &new_id_as_path) FileAbstraction::copy(&old_id_as_path, &new_id_as_path)
.and_then(|_| { .and_then(|_| {
if remove_old { if remove_old {
debug!("Removing old '{:?}'", old_id_as_path);
FileAbstraction::remove_file(&old_id_as_path) FileAbstraction::remove_file(&old_id_as_path)
} else { } else {
Ok(()) Ok(())