Skip to content

Commit 89daa44

Browse files
committed
WIP log based debugging
1 parent ca2b727 commit 89daa44

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/fs_store.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ impl Chunks {
361361
fn load(root: &Path, doc_id: &DocumentId) -> Result<Option<Self>, Error> {
362362
let doc_id_hash = DocIdPaths::from(doc_id);
363363
let level2_path = doc_id_hash.level2_path(root);
364-
tracing::debug!(
364+
tracing::warn!(
365365
root=%root.display(),
366366
doc_id=?doc_id,
367367
doc_path=%level2_path.display(),
@@ -445,7 +445,11 @@ impl Chunks {
445445
for chunk in self.incrementals.values() {
446446
bytes.extend(chunk);
447447
}
448-
automerge::Automerge::load(&bytes)
448+
449+
automerge::Automerge::load_with_options(
450+
&bytes,
451+
automerge::LoadOptions::new().on_partial_load(automerge::OnPartialLoad::Ignore),
452+
)
449453
}
450454
}
451455

0 commit comments

Comments
 (0)