From b11711baef0fa39655e7f28024d9eeb1e1f7231a Mon Sep 17 00:00:00 2001 From: Emmie Maeda Date: Mon, 30 Sep 2024 01:35:22 -0400 Subject: [PATCH] Add log lines for empty revisions. --- deepwell/src/services/file_revision/service.rs | 1 + deepwell/src/services/page_revision/service.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/deepwell/src/services/file_revision/service.rs b/deepwell/src/services/file_revision/service.rs index 65d5bd52d71..f58eccd4a73 100644 --- a/deepwell/src/services/file_revision/service.rs +++ b/deepwell/src/services/file_revision/service.rs @@ -121,6 +121,7 @@ impl FileRevisionService { // If nothing has changed, then don't create a new revision // Also don't rerender the page, this isn't an edit. if changes.is_empty() { + debug!("No changes in file, performing no action"); return Ok(None); } diff --git a/deepwell/src/services/page_revision/service.rs b/deepwell/src/services/page_revision/service.rs index 5c8b98f3cb8..72a92413038 100644 --- a/deepwell/src/services/page_revision/service.rs +++ b/deepwell/src/services/page_revision/service.rs @@ -181,6 +181,7 @@ impl PageRevisionService { // If nothing has changed, then don't create a new revision if changes.is_empty() { + debug!("No changes in edit, only rerendering the page"); Self::rerender(ctx, site_id, page_id, 0).await?; return Ok(None); }