From 518b014c51afd89814009c19ca4848aba2ec41eb Mon Sep 17 00:00:00 2001 From: Dusan Stanivukovic Date: Tue, 19 Mar 2024 22:42:28 +0100 Subject: [PATCH] Add log for fetched events (#2518) # Description Related to oncall issue where our system failed to index some settlements/trades. The only reason I could think of at the moment is that it was some intermittent issue with the node which answered with empty Vec of events. All other error execution paths are already covered in the code. --- crates/shared/src/event_handling.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/shared/src/event_handling.rs b/crates/shared/src/event_handling.rs index 99d4250e15..d3a7b6b632 100644 --- a/crates/shared/src/event_handling.rs +++ b/crates/shared/src/event_handling.rs @@ -387,6 +387,13 @@ where { match result { Ok(e) => { + if !e.is_empty() { + tracing::debug!( + "events fetched for block: {:?}, events: {}", + blocks[i], + e.len(), + ); + } blocks_filtered.push(blocks[i]); events.extend(e); }