From c387855113f5a9427218682f2b72872e20d10911 Mon Sep 17 00:00:00 2001 From: Issac Kelly Date: Fri, 15 Sep 2023 13:58:59 -0700 Subject: [PATCH] WIP log based debugging --- src/fs_store.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/fs_store.rs b/src/fs_store.rs index e100e207..93d1cbc2 100644 --- a/src/fs_store.rs +++ b/src/fs_store.rs @@ -225,6 +225,10 @@ fn write_chunk( // Move the temporary file into a snapshot in the document data directory // with a name based on the hash of the heads of the document let output_path = paths.chunk_path(root, &name); + + tracing::warn!("Renaming: {:?}", temp_save); + tracing::warn!("To: {:?}", output_path); + std::fs::rename(&temp_save_path, &output_path) .map_err(|e| Error(ErrorKind::RenameTempFile(temp_save_path, output_path, e)))?;