Skip to content

Commit

Permalink
vrfv2: Add request id to logs in runPipelines (#13172)
Browse files Browse the repository at this point in the history
  • Loading branch information
leeyikjiun authored Jun 25, 2024
1 parent 76bdd9d commit f38886c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/services/vrf/v2/listener_v2_log_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,8 @@ func (lsn *listenerV2) runPipelines(
wg.Add(1)
go func(i int, req pendingRequest) {
defer wg.Done()
results[i] = lsn.simulateFulfillment(ctx, maxGasPriceWei, req, l)
ll := l.With("reqID", req.req.RequestID().String())
results[i] = lsn.simulateFulfillment(ctx, maxGasPriceWei, req, ll)
}(i, req)
}
wg.Wait()
Expand Down Expand Up @@ -1103,7 +1104,6 @@ func (lsn *listenerV2) simulateFulfillment(
if err != nil {
// not critical, just log and continue
lg.Warnw("unable to estimate funds needed for request, continuing anyway",
"reqID", req.req.RequestID(),
"err", err)
res.fundsNeeded = big.NewInt(0)
}
Expand Down

0 comments on commit f38886c

Please sign in to comment.