mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-03-26 02:11:54 +00:00
trace logs for patch application
This commit is contained in:
committed by
Aiden McClelland
parent
7a81c7da57
commit
f7d3bc07da
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user