mirror of
https://github.com/markqvist/Sideband.git
synced 2024-12-27 00:19:25 -05:00
Improved error logging on telemetry screen
This commit is contained in:
parent
6120c1dd31
commit
1375f4028e
@ -117,6 +117,7 @@ class ObjectDetails():
|
||||
toast("Reloaded telemetry for object")
|
||||
|
||||
def set_source(self, source_dest, from_conv=False, from_telemetry=False, prefetched=None):
|
||||
try:
|
||||
self.object_hash = source_dest
|
||||
own_address = self.app.sideband.lxmf_destination.hash
|
||||
telemetry_allowed = self.app.sideband.should_send_telemetry(source_dest)
|
||||
@ -195,6 +196,11 @@ class ObjectDetails():
|
||||
|
||||
self.telemetry_list.effect_cls = ScrollEffect
|
||||
Clock.schedule_once(djob, 0.1)
|
||||
except Exception as e:
|
||||
import traceback
|
||||
exception_info = "".join(traceback.TracebackException.from_exception(e).format())
|
||||
RNS.log(f"An {str(type(e))} occurred while updating service telemetry: {str(e)}", RNS.LOG_ERROR)
|
||||
RNS.log(exception_info, RNS.LOG_ERROR)
|
||||
|
||||
def reload(self):
|
||||
self.clear_widget()
|
||||
@ -282,6 +288,7 @@ class RVDetails(MDRecycleView):
|
||||
self.data = []
|
||||
|
||||
def update_source(self, rendered_telemetry=None):
|
||||
try:
|
||||
if not rendered_telemetry:
|
||||
rendered_telemetry = []
|
||||
|
||||
@ -556,6 +563,11 @@ class RVDetails(MDRecycleView):
|
||||
|
||||
self.data = self.entries
|
||||
|
||||
except Exception as e:
|
||||
import traceback
|
||||
exception_info = "".join(traceback.TracebackException.from_exception(e).format())
|
||||
RNS.log(f"An {str(type(e))} occurred while updating service telemetry: {str(e)}", RNS.LOG_ERROR)
|
||||
RNS.log(exception_info, RNS.LOG_ERROR)
|
||||
|
||||
|
||||
layout_object_details = """
|
||||
|
Loading…
Reference in New Issue
Block a user