From 32493f5b41a8a5fcbb4e9c8371c9a70dbe065180 Mon Sep 17 00:00:00 2001 From: Max <82761650+MaxMustermann2@users.noreply.github.com> Date: Mon, 18 Jul 2022 06:13:06 +0000 Subject: [PATCH] [txpool] log errors from sink (#4235) --- core/types/tx_errorsink.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/types/tx_errorsink.go b/core/types/tx_errorsink.go index 0cce3242d..45d32ea8f 100644 --- a/core/types/tx_errorsink.go +++ b/core/types/tx_errorsink.go @@ -59,6 +59,7 @@ func (sink *TransactionErrorSink) Add(tx PoolTransaction, err error) { utils.Logger().Debug(). Str("tag", logTag). Interface("tx-hash-id", hash). + Err(err). Msgf("Added plain transaction error message") } else if ethTx, ok := tx.(*EthTransaction); ok { hash := ethTx.Hash().String() @@ -70,6 +71,7 @@ func (sink *TransactionErrorSink) Add(tx PoolTransaction, err error) { utils.Logger().Debug(). Str("tag", logTag). Interface("tx-hash-id", hash). + Err(err). Msgf("Added eth transaction error message") } else if stakingTx, ok := tx.(*staking.StakingTransaction); ok { hash := stakingTx.Hash().String() @@ -82,11 +84,13 @@ func (sink *TransactionErrorSink) Add(tx PoolTransaction, err error) { utils.Logger().Debug(). Str("tag", logTag). Interface("tx-hash-id", hash). + Err(err). Msgf("Added staking transaction error message") } else { utils.Logger().Error(). Str("tag", logTag). Interface("tx", tx). + Err(err). Msg("Attempted to add an unknown transaction type") } }