From 67085e3ee40a512bc2df18537ea732349c8bef18 Mon Sep 17 00:00:00 2001 From: Gabriel Levcovitz Date: Fri, 6 Oct 2023 16:44:22 -0300 Subject: [PATCH] chore: improve push_tx log --- hathor/transaction/resources/push_tx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hathor/transaction/resources/push_tx.py b/hathor/transaction/resources/push_tx.py index 0b668274d..8db827edf 100644 --- a/hathor/transaction/resources/push_tx.py +++ b/hathor/transaction/resources/push_tx.py @@ -101,9 +101,9 @@ def handle_push_tx(self, params: dict[str, Any], client_addr: str) -> dict[str, self.manager.push_tx(tx, allow_non_standard_script=self.allow_non_standard_script, max_output_script_size=self.max_output_script_size) except (InvalidNewTransaction, TxValidationError) as e: - self.log.warn('push tx rejected', exc_info=True) success = False message = str(e) + self.log.warn('push tx rejected', reason=repr(e)) data = {'success': success, 'message': message} if success: data['tx'] = tx.to_json()