From 78c48a9004d4465de6fe39a3f8bedadba21bf4d2 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 7 Feb 2024 18:57:14 -0500 Subject: [PATCH] Add back Mercury transmit debug logging (#11958) * 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 --- core/services/relay/evm/mercury/transmitter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/services/relay/evm/mercury/transmitter.go b/core/services/relay/evm/mercury/transmitter.go index 40a51b9d92d..bfbc81cfb7f 100644 --- a/core/services/relay/evm/mercury/transmitter.go +++ b/core/services/relay/evm/mercury/transmitter.go @@ -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 @@ -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)