trace logs for patch application

This commit is contained in:
Aiden McClelland
2021-10-07 14:01:34 -06:00
committed by Aiden McClelland
parent 7a81c7da57
commit f7d3bc07da

View File

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