Skip to content

Commit

Permalink
WIP log based debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
issackelly committed Sep 15, 2023
1 parent 89daa44 commit c387855
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fs_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)))?;

Expand Down

0 comments on commit c387855

Please sign in to comment.