Skip to content

Commit

Permalink
Merge pull request #12186 from smartcontractkit/revert-12172-cherry-p…
Browse files Browse the repository at this point in the history
…ick-05b5612

Revert "core/chains/evm/client/errors.go: wrap log msgs with Sprintf (#12168)"
  • Loading branch information
snehaagni authored Feb 28, 2024
2 parents 97e6a05 + 04c5ab8 commit 1c6ed78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/chains/evm/client/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ func ClassifySendError(err error, lggr logger.SugaredLogger, tx *types.Transacti
return commonclient.Fatal
}
if sendError.IsNonceTooLowError() || sendError.IsTransactionAlreadyMined() {
lggr.Debugw(fmt.Sprintf("Transaction already confirmed for this nonce: %d", tx.Nonce()), "err", sendError, "etx", tx)
lggr.Debugw("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
Expand Down Expand Up @@ -472,7 +472,7 @@ func ClassifySendError(err error, lggr logger.SugaredLogger, tx *types.Transacti
return commonclient.InsufficientFunds
}
if sendError.IsTimeout() {
lggr.Errorw(fmt.Sprintf("timeout while sending transaction %x", tx.Hash()), "err", sendError, "etx", tx)
lggr.Errorw("timeout while sending transaction %x", tx.Hash(), "err", sendError, "etx", tx)
return commonclient.Retryable
}
if sendError.IsTxFeeExceedsCap() {
Expand Down

0 comments on commit 1c6ed78

Please sign in to comment.