Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
ERROR->DEBUG when exception is part of logic.
  • Loading branch information
afalaleev committed Feb 1, 2022
commit 7e981495a72774396b5b5dfd9a9abe91c13ab661
6 changes: 3 additions & 3 deletions proxy/plugin/solana_rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __init__(self):
self.client = SolanaClient(SOLANA_URL)
self.db = IndexerDB()
self.db.set_client(self.client)

if PP_SOLANA_URL == SOLANA_URL:
self.gas_price_calculator = GasPriceCalculator(self.client)
else:
Expand Down Expand Up @@ -277,7 +277,7 @@ def eth_getTransactionCount(self, account, tag):
acc_info = getAccountInfo(self.client, EthereumAddress(account))
return hex(int.from_bytes(acc_info.trx_count, 'little'))
except Exception as err:
self.error("eth_getTransactionCount: Can't get account info: %s", err)
self.debug(f"eth_getTransactionCount: Can't get account info: {err}")
return hex(0)

def _getTransactionReceipt(self, tx):
Expand Down Expand Up @@ -391,7 +391,7 @@ def eth_sendRawTransaction(self, rawTrx):
self._log_transaction_error(err)
raise
except EthereumError as err:
self.error("eth_sendRawTransaction EthereumError:%s", err)
self.debug("eth_sendRawTransaction EthereumError: {err}")
raise
except Exception as err:
self.error("eth_sendRawTransaction type(err):%s, Exception:%s", type(err), err)
Expand Down