Skip to content

Commit ef89236

Browse files
committed
chore: improve push_tx log
1 parent 064f84b commit ef89236

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hathor/transaction/resources/push_tx.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ def handle_push_tx(self, params: dict[str, Any], client_addr: str) -> dict[str,
101101
self.manager.push_tx(tx, allow_non_standard_script=self.allow_non_standard_script,
102102
max_output_script_size=self.max_output_script_size)
103103
except (InvalidNewTransaction, TxValidationError) as e:
104-
self.log.warn('push tx rejected', exc_info=True)
105104
success = False
106105
message = str(e)
106+
self.log.warn('push tx rejected', reason=message)
107107
data = {'success': success, 'message': message}
108108
if success:
109109
data['tx'] = tx.to_json()

0 commit comments

Comments
 (0)