From 413cc1234f9eda0f9101afc62fb8a88ce1045740 Mon Sep 17 00:00:00 2001 From: Sam Andreae Date: Wed, 26 Jun 2024 12:56:17 +0100 Subject: [PATCH] Change document creation/update/delete logging to info level --- aquadoggo/src/materializer/tasks/reduce.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aquadoggo/src/materializer/tasks/reduce.rs b/aquadoggo/src/materializer/tasks/reduce.rs index ed37e5a47..60217feca 100644 --- a/aquadoggo/src/materializer/tasks/reduce.rs +++ b/aquadoggo/src/materializer/tasks/reduce.rs @@ -1,6 +1,6 @@ // SPDX-License-Identifier: AGPL-3.0-or-later -use log::{debug, trace}; +use log::{debug, info, trace}; use p2panda_rs::document::traits::AsDocument; use p2panda_rs::document::{DocumentBuilder, DocumentId, DocumentViewId}; use p2panda_rs::operation::traits::{AsOperation, WithPublicKey}; @@ -228,7 +228,7 @@ async fn reduce_document + WithPublicKey>( // If the document was deleted, then we return nothing if document.is_deleted() { - debug!( + info!( "Deleted {} final view {}", document.display(), document.view_id().display() @@ -236,13 +236,13 @@ async fn reduce_document + WithPublicKey>( } if document.is_edited() { - debug!( + info!( "Updated {} latest view {}", document.display(), document.view_id().display() ); } else { - debug!("Created {}", document.display()); + info!("Created {}", document.display()); }; if document.is_deleted() || document.is_edited() {