commit 215a609cb5151db2c69de6869135972d7b83f278
parent e97852ef7bfdb8df6b4b4cac70477f644b5b7957
Author: lash <dev@holbrook.no>
Date: Thu, 22 Sep 2022 16:11:27 +0000
Make record link log less confusing
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/record.rs b/src/record.rs
@@ -259,13 +259,14 @@ pub fn put_mutable(path: &Path, mut f: impl Read, expected_size: usize, key: &Re
Ok(v) => {
match remove_file(&link_path_buf) {
Ok(r) => {
- info!("unlinked mutable ref on {:?}", &link_path_buf);
+ debug!("unlinked mutable ref on {:?}", &link_path_buf);
},
Err(e) => {
debug!("clear symlink failed {:?}", &e);
}
};
symlink(&v.path, &link_path_buf);
+ info!("linked mutable ref {:?} -> {:?}", &link_path_buf, &v.path);
let r = Record{
digest: pointer,
path: link_path_buf.clone(),