From 391db3340afb70bf9daa250779c5bbb43da633e3 Mon Sep 17 00:00:00 2001 From: brewmaster012 <88689859+brewmaster012@users.noreply.github.com> Date: Sat, 12 Aug 2023 17:37:16 -0500 Subject: [PATCH] mute noisy log --- zetaclient/evm_client.go | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/zetaclient/evm_client.go b/zetaclient/evm_client.go index eeb6cd1f0f..e07666b48d 100644 --- a/zetaclient/evm_client.go +++ b/zetaclient/evm_client.go @@ -464,31 +464,10 @@ func (ob *EVMChainClient) observeOutTx() { ob.outTXConfirmedTransaction[ob.GetIndex(int(nonceInt))] = transaction ob.mu.Unlock() - //DISABLING PERSISTENCE - //// Convert to DB types - //rec, err := clienttypes.ToReceiptSQLType(receipt, ob.GetIndex(int(nonceInt))) - //if err != nil { - // ob.logger.ObserveOutTx.Error().Err(err).Msgf("error converting receipt to db type") - // continue - //} - //trans, err := clienttypes.ToTransactionSQLType(transaction, ob.GetIndex(int(nonceInt))) - //if err != nil { - // ob.logger.ObserveOutTx.Err(err).Msgf("error converting transaction to db type") - // continue - //} - // - ////Save to DB - //if dbc := ob.db.Create(rec); dbc.Error != nil { - // ob.logger.ObserveOutTx.Error().Err(err).Msgf("PurgeTxHashWatchList: error putting nonce %d tx hashes %s to db", nonceInt, receipt.TxHash.Hex()) - //} - //if dbc := ob.db.Create(trans); dbc.Error != nil { - // ob.logger.ObserveOutTx.Error().Err(err).Msgf("PurgeTxHashWatchList: error putting nonce %d tx hashes %s to db", nonceInt, transaction.Hash()) - //} - break TXHASHLOOP } if err != nil { - ob.logger.ObserveOutTx.Error().Err(err).Msgf("error queryTxByHash: chain %s hash %s", ob.chain.String(), txHash.TxHash) + ob.logger.ObserveOutTx.Debug().Err(err).Msgf("error queryTxByHash: chain %s hash %s", ob.chain.String(), txHash.TxHash) } //<-inTimeout }