Skip to content

Commit

Permalink
add log to check log generation
Browse files Browse the repository at this point in the history
  • Loading branch information
anirudhwarrier committed Jul 15, 2024
1 parent ced300b commit 2f23d9b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions integration-tests/load/automationv2_1/automationv2_1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -640,9 +640,10 @@ Load Config:

for _, triggerContract := range triggerContracts {
var (
logs []types.Log
address = triggerContract.Address()
timeout = 5 * time.Second
logs []types.Log
address = triggerContract.Address()
timeout = 5 * time.Second
blockNumbers []uint64
)
for fromBlock := startBlock; fromBlock < endBlock; fromBlock += batchSize + 1 {
filterQuery := geth.FilterQuery{
Expand All @@ -668,7 +669,7 @@ Load Config:
timeout = time.Duration(math.Min(float64(timeout)*2, float64(2*time.Minute)))
continue
}
l.Debug().
l.Info().
Interface("FilterQuery", filterQuery).
Str("Contract Address", address.Hex()).
Str("Timeout", timeout.String()).
Expand All @@ -677,6 +678,10 @@ Load Config:
logs = append(logs, logsInBatch...)
}
}
for _, l := range logs {
blockNumbers = append(blockNumbers, l.BlockNumber)
}
l.Info().Interface("Block Numbers", blockNumbers).Msg("Block Numbers")
numberOfEventsEmitted = numberOfEventsEmitted + int64(len(logs))
}

Expand Down

0 comments on commit 2f23d9b

Please sign in to comment.