From 9bd5456fb0cb357d929e635d29d4513e56cd5ffc Mon Sep 17 00:00:00 2001 From: bitful-pannul Date: Wed, 28 Aug 2024 17:29:30 +0300 Subject: [PATCH] kns_indexer: change pending note print to verbosity1 --- kinode/packages/kns_indexer/kns_indexer/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kinode/packages/kns_indexer/kns_indexer/src/lib.rs b/kinode/packages/kns_indexer/kns_indexer/src/lib.rs index d7556dad..da9a2fa6 100644 --- a/kinode/packages/kns_indexer/kns_indexer/src/lib.rs +++ b/kinode/packages/kns_indexer/kns_indexer/src/lib.rs @@ -278,7 +278,10 @@ fn handle_pending_notes( for (note, attempt) in notes.drain(..) { if attempt >= MAX_PENDING_ATTEMPTS { // skip notes that have exceeded max attempts - println!("dropping note from block {block} after {attempt} attempts"); + print_to_terminal( + 1, + &format!("dropping note from block {block} after {attempt} attempts"), + ); continue; } if let Err(e) = handle_note(state, ¬e) {