Skip to content

Commit

Permalink
Add back Mercury transmit debug logging (#11958)
Browse files Browse the repository at this point in the history
* Add back Mercury transmit debug logging

This was removed to reduce log volume, but it turns out this is actually
critical and necessary for debugging production issues.

* Make sonarqube run
  • Loading branch information
samsondav authored Feb 7, 2024
1 parent f90e419 commit 78c48a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/services/relay/evm/mercury/transmitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ func (mt *mercuryTransmitter) runQueueLoop() {
b.Reset()
if res.Error == "" {
mt.transmitSuccessCount.Inc()
mt.lggr.Tracew("Transmit report success", "req", t.Req, "response", res, "reportCtx", t.ReportCtx)
mt.lggr.Debugw("Transmit report success", "req", t.Req, "response", res, "reportCtx", t.ReportCtx)
} else {
// We don't need to retry here because the mercury server
// has confirmed it received the report. We only need to retry
Expand All @@ -317,7 +317,7 @@ func (mt *mercuryTransmitter) runQueueLoop() {
case DuplicateReport:
mt.transmitSuccessCount.Inc()
mt.transmitDuplicateCount.Inc()
mt.lggr.Tracew("Transmit report succeeded; duplicate report", "code", res.Code)
mt.lggr.Debugw("Transmit report success; duplicate report", "req", t.Req, "response", res, "reportCtx", t.ReportCtx)
default:
transmitServerErrorCount.WithLabelValues(mt.feedID.String(), fmt.Sprintf("%d", res.Code)).Inc()
mt.lggr.Errorw("Transmit report failed; mercury server returned error", "response", res, "reportCtx", t.ReportCtx, "err", res.Error, "code", res.Code)
Expand Down

0 comments on commit 78c48a9

Please sign in to comment.