Added send_transaction response to debug log.

This commit is contained in:
Geoff Taylor 2021-09-02 15:23:53 +01:00
parent 652296856b
commit 71ba03935f
1 changed files with 3 additions and 1 deletions

View File

@ -271,7 +271,7 @@ class CompatibleClient(Client):
skip_preflight: bool = opts.skip_preflight or self.skip_preflight skip_preflight: bool = opts.skip_preflight or self.skip_preflight
try: try:
return self._send_request( response = self._send_request(
"sendTransaction", "sendTransaction",
encoded_transaction, encoded_transaction,
{ {
@ -280,6 +280,8 @@ class CompatibleClient(Client):
_EncodingKey: self.encoding, _EncodingKey: self.encoding,
} }
) )
self.logger.debug(f"Transaction ID response: {response}")
return response
except TransactionException as transaction_exception: except TransactionException as transaction_exception:
raise TransactionException(transaction, transaction_exception.message, transaction_exception.code, raise TransactionException(transaction, transaction_exception.message, transaction_exception.code,
transaction_exception.name, transaction_exception.rpc_method, transaction_exception.name, transaction_exception.rpc_method,