From 05b561292996246e36507b0639e505cf5a0ffdd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Friedemann=20F=C3=BCrst?= <59653747+friedemannf@users.noreply.github.com> Date: Mon, 26 Feb 2024 13:43:32 +0100 Subject: [PATCH] core/chains/evm/client/errors.go: wrap log msgs with Sprintf (#12168) --- core/chains/evm/client/errors.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/chains/evm/client/errors.go b/core/chains/evm/client/errors.go index e966e088678..1c470f0cfc6 100644 --- a/core/chains/evm/client/errors.go +++ b/core/chains/evm/client/errors.go @@ -443,7 +443,7 @@ func ClassifySendError(err error, lggr logger.SugaredLogger, tx *types.Transacti return commonclient.Fatal } if sendError.IsNonceTooLowError() || sendError.IsTransactionAlreadyMined() { - lggr.Debugw("Transaction already confirmed for this nonce: %d", tx.Nonce(), "err", sendError, "etx", tx) + lggr.Debugw(fmt.Sprintf("Transaction already confirmed for this nonce: %d", tx.Nonce()), "err", sendError, "etx", tx) // Nonce too low indicated that a transaction at this nonce was confirmed already. // Mark it as TransactionAlreadyKnown. return commonclient.TransactionAlreadyKnown @@ -491,15 +491,15 @@ func ClassifySendError(err error, lggr logger.SugaredLogger, tx *types.Transacti return commonclient.InsufficientFunds } if sendError.IsServiceUnavailable() { - lggr.Errorw("service unavailable while sending transaction %x", tx.Hash(), "err", sendError, "etx", tx) + lggr.Errorw(fmt.Sprintf("service unavailable while sending transaction %x", tx.Hash()), "err", sendError, "etx", tx) return commonclient.Retryable } if sendError.IsTimeout() { - lggr.Errorw("timeout while sending transaction %x", tx.Hash(), "err", sendError, "etx", tx) + lggr.Errorw(fmt.Sprintf("timeout while sending transaction %x", tx.Hash()), "err", sendError, "etx", tx) return commonclient.Retryable } if sendError.IsCanceled() { - lggr.Errorw("context was canceled while sending transaction %x", tx.Hash(), "err", sendError, "etx", tx) + lggr.Errorw(fmt.Sprintf("context was canceled while sending transaction %x", tx.Hash()), "err", sendError, "etx", tx) return commonclient.Retryable } if sendError.IsTxFeeExceedsCap() {