Skip to content
Snippets Groups Projects
Unverified Commit e782917d authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

get the exception formatted nicely into the log

it's unclear what a good testing strategy for this logging is.  should switch
to eliot soon.
parent 0d3dbcc9
Branches
No related tags found
1 merge request!168Report "Parsing redeem response failed" better
......@@ -944,8 +944,8 @@ class PaymentController(object):
self._unpaid[voucher] = self.store.now()
else:
self._log.error(
"Redeeming random tokens for a voucher ({voucher}) failed: {reason}",
reason=reason,
"Redeeming random tokens for a voucher ({voucher}) failed: {reason!r}",
reason=reason.value,
voucher=voucher,
)
self._error[voucher] = model_Error(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment