tkivy crash_reporter: a bit more logging - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit eaa4de33541a56af049b8d48b92f206ed47f785a DIR parent 151a45911f028b1b466e001a0fd8fad467d60bf1 HTML Author: SomberNight <somber.night@protonmail.com> Date: Wed, 10 Mar 2021 17:38:53 +0100 kivy crash_reporter: a bit more logging Diffstat: M electrum/gui/kivy/uix/dialogs/cras… | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) --- DIR diff --git a/electrum/gui/kivy/uix/dialogs/crash_reporter.py b/electrum/gui/kivy/uix/dialogs/crash_reporter.py t@@ -122,13 +122,15 @@ class CrashReporter(BaseCrashReporter, Factory.Popup): # FIXME network request in GUI thread... response = json.loads(BaseCrashReporter.send_report(self, loop, proxy, "/crash.json", timeout=10)) - except (ValueError, ClientError): - #self.logger.debug("", exc_info=True) + except (ValueError, ClientError) as e: + self.logger.warning(f"Error sending crash report. exc={e!r}") self.show_popup(_('Unable to send report'), _("Please check your network connection.")) else: self.show_popup(_('Report sent'), response["text"]) - if response["location"]: - self.open_url(response["location"]) + location = response["location"] + if location: + self.logger.info(f"Crash report sent. location={location!r}") + self.open_url(location) self.dismiss() def on_dismiss(self):