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 ca2b727 commit 89daa44
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/fs_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ impl Chunks {
fn load(root: &Path, doc_id: &DocumentId) -> Result<Option<Self>, Error> {
let doc_id_hash = DocIdPaths::from(doc_id);
let level2_path = doc_id_hash.level2_path(root);
tracing::debug!(
tracing::warn!(
root=%root.display(),
doc_id=?doc_id,
doc_path=%level2_path.display(),
Expand Down Expand Up @@ -445,7 +445,11 @@ impl Chunks {
for chunk in self.incrementals.values() {
bytes.extend(chunk);
}
automerge::Automerge::load(&bytes)

automerge::Automerge::load_with_options(
&bytes,
automerge::LoadOptions::new().on_partial_load(automerge::OnPartialLoad::Ignore),
)
}
}

Expand Down

0 comments on commit 89daa44

Please sign in to comment.