Skip to content

Commit

Permalink
core: Log how many entries the cache had at each block
Browse files Browse the repository at this point in the history
  • Loading branch information
lutter committed Apr 21, 2023
1 parent c99229c commit 9f4a182
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions core/src/subgraph/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,15 +202,9 @@ where
"block_hash" => format!("{}", block_ptr.hash)
));

if triggers.len() == 1 {
debug!(&logger, "1 candidate trigger in this block");
} else {
debug!(
&logger,
"{} candidate triggers in this block",
triggers.len()
);
}
debug!(logger, "Start processing block";
"triggers" => triggers.len(),
"cached_entities" => self.state.entity_lfu_cache.len());

let proof_of_indexing = if self.inputs.store.supports_proof_of_indexing().await? {
Some(Arc::new(AtomicRefCell::new(ProofOfIndexing::new(
Expand Down

0 comments on commit 9f4a182

Please sign in to comment.