trace logs for patch application

This commit is contained in:
Aiden McClelland
2021-10-07 14:01:34 -06:00
parent 7dba4f6c2b
commit 00ca56ceb8

View File

@@ -274,6 +274,8 @@ impl PatchDb {
} else {
self.store.write().await
};
#[cfg(feature = "log")]
log::trace!("Attempting to apply patch: {:?}", patch);
let rev = store.apply(patch, expire_id).await?;
if let Some(rev) = rev.as_ref() {
self.subscriber.send(rev.clone()).unwrap_or_default(); // ignore errors