Skip to content

Commit

Permalink
Improve logging for when we decide to copy a file
Browse files Browse the repository at this point in the history
  • Loading branch information
wykurz committed Dec 3, 2023
1 parent fd0af56 commit 08ded38
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/src/copy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,10 @@ pub async fn link(
if is_unchanged(&src_metadata, update_metadata) {
tokio::fs::hard_link(src, dst).await?;
} else {
debug!(
"link: {:?} metadata has changed, copying from {:?}",
src, update
);
copy_file(update, dst, settings).await?;
}
return Ok(());
Expand Down

0 comments on commit 08ded38

Please sign in to comment.