Skip to content

Commit

Permalink
Add debug logs to rlink when we decide to copy from update instead
Browse files Browse the repository at this point in the history
  • Loading branch information
wykurz committed Dec 3, 2023
1 parent 687b4b8 commit 1baffda
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions common/src/copy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,13 @@ pub async fn link(
let update = update.as_ref().unwrap();
if src_metadata.file_type() != update_metadata.file_type() {
// file type changed, just copy the updated one
debug!(
"link: file type of {:?} ({:?}) and {:?} ({:?}) differs - copying from update",
src,
src_metadata.file_type(),
update,
update_metadata.file_type()
);
return copy(prog_track, update, dst, settings).await;
}
if update_metadata.is_file() {
Expand Down

0 comments on commit 1baffda

Please sign in to comment.