kivy crash_reporter: a bit more logging
This commit is contained in:
@@ -122,13 +122,15 @@ class CrashReporter(BaseCrashReporter, Factory.Popup):
|
|||||||
# FIXME network request in GUI thread...
|
# FIXME network request in GUI thread...
|
||||||
response = json.loads(BaseCrashReporter.send_report(self, loop, proxy,
|
response = json.loads(BaseCrashReporter.send_report(self, loop, proxy,
|
||||||
"/crash.json", timeout=10))
|
"/crash.json", timeout=10))
|
||||||
except (ValueError, ClientError):
|
except (ValueError, ClientError) as e:
|
||||||
#self.logger.debug("", exc_info=True)
|
self.logger.warning(f"Error sending crash report. exc={e!r}")
|
||||||
self.show_popup(_('Unable to send report'), _("Please check your network connection."))
|
self.show_popup(_('Unable to send report'), _("Please check your network connection."))
|
||||||
else:
|
else:
|
||||||
self.show_popup(_('Report sent'), response["text"])
|
self.show_popup(_('Report sent'), response["text"])
|
||||||
if response["location"]:
|
location = response["location"]
|
||||||
self.open_url(response["location"])
|
if location:
|
||||||
|
self.logger.info(f"Crash report sent. location={location!r}")
|
||||||
|
self.open_url(location)
|
||||||
self.dismiss()
|
self.dismiss()
|
||||||
|
|
||||||
def on_dismiss(self):
|
def on_dismiss(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user