Skip to content

Commit

Permalink
Add log for fetched events (#2518)
Browse files Browse the repository at this point in the history
# 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.
  • Loading branch information
sunce86 authored Mar 19, 2024
1 parent 778097c commit 518b014
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/shared/src/event_handling.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 518b014

Please sign in to comment.