1
0

kivy: show payment log details

This commit is contained in:
ThomasV
2020-03-10 16:44:23 +01:00
parent d19fc56eb8
commit 6c2ef176cc
3 changed files with 31 additions and 25 deletions

View File

@@ -137,5 +137,8 @@ class InvoiceDialog(Factory.Popup):
def show_log(self):
if self.log:
log_str = _('Payment log:') + '\n\n' + '\n'.join([str(x.exception) for x in self.log])
log_str = _('Payment log:') + '\n\n'
for payment_attempt_log in self.log:
route_str, chan_str, message = payment_attempt_log.formatted_tuple()
log_str += chan_str + ' --- ' + message + '\n'
self.app.show_info(log_str)