Skip to content

Commit

Permalink
Change document creation/update/delete logging to info level
Browse files Browse the repository at this point in the history
  • Loading branch information
sandreae committed Jun 26, 2024
1 parent 055b87a commit 413cc12
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions aquadoggo/src/materializer/tasks/reduce.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down Expand Up @@ -228,21 +228,21 @@ async fn reduce_document<O: AsOperation + WithId<OperationId> + 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()
);
}

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() {
Expand Down

0 comments on commit 413cc12

Please sign in to comment.