From f7d3bc07daf9b9f5a7c304c3622d2f426b9965ec Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Thu, 7 Oct 2021 14:01:34 -0600 Subject: [PATCH] trace logs for patch application --- patch-db/src/store.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/patch-db/src/store.rs b/patch-db/src/store.rs index b699907..168ac80 100644 --- a/patch-db/src/store.rs +++ b/patch-db/src/store.rs @@ -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