Skip to content

Commit

Permalink
mute noisy log
Browse files Browse the repository at this point in the history
  • Loading branch information
brewmaster012 committed Aug 12, 2023
1 parent e9de96b commit 391db33
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions zetaclient/evm_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 391db33

Please sign in to comment.