Skip to content

Commit

Permalink
change warns to debugs in streams lookup (#10863)
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanRHall authored Oct 5, 2023
1 parent d030e2c commit a808a95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/services/ocr2/plugins/ocr2keeper/evm21/streams_lookup.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func (r *EvmRegistry) streamsLookup(ctx context.Context, checkResults []ocr2keep
lggr.Infof("at block %d upkeep %s trying to DecodeStreamsLookupRequest performData=%s", block, upkeepId, hexutil.Encode(checkResults[i].PerformData))
streamsLookupErr, err := r.packer.DecodeStreamsLookupRequest(res.PerformData)
if err != nil {
lggr.Warnf("at block %d upkeep %s DecodeStreamsLookupRequest failed: %v", block, upkeepId, err)
lggr.Debugf("at block %d upkeep %s DecodeStreamsLookupRequest failed: %v", block, upkeepId, err)
// user contract did not revert with StreamsLookup error
continue
}
Expand All @@ -111,7 +111,7 @@ func (r *EvmRegistry) streamsLookup(ctx context.Context, checkResults []ocr2keep

if len(l.Feeds) == 0 {
checkResults[i].IneligibilityReason = uint8(encoding.UpkeepFailureReasonInvalidRevertDataInput)
lggr.Warnf("at block %s upkeep %s has empty feeds array", block, upkeepId)
lggr.Debugf("at block %s upkeep %s has empty feeds array", block, upkeepId)
continue
}
// mercury permission checking for v0.3 is done by mercury server
Expand All @@ -128,13 +128,13 @@ func (r *EvmRegistry) streamsLookup(ctx context.Context, checkResults []ocr2keep
}

if !allowed {
lggr.Warnf("at block %d upkeep %s NOT allowed to query Mercury server", block, upkeepId)
lggr.Debugf("at block %d upkeep %s NOT allowed to query Mercury server", block, upkeepId)
checkResults[i].IneligibilityReason = uint8(encoding.UpkeepFailureReasonMercuryAccessNotAllowed)
continue
}
} else if l.FeedParamKey != feedIDs || l.TimeParamKey != timestamp {
// if mercury version cannot be determined, set failure reason
lggr.Warnf("at block %d upkeep %s NOT allowed to query Mercury server", block, upkeepId)
lggr.Debugf("at block %d upkeep %s NOT allowed to query Mercury server", block, upkeepId)
checkResults[i].IneligibilityReason = uint8(encoding.UpkeepFailureReasonInvalidRevertDataInput)
continue
}
Expand Down

0 comments on commit a808a95

Please sign in to comment.