mirror of
https://github.com/liberatedsystems/Sideband_CE.git
synced 2024-09-03 04:13:27 +02: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")
|
toast("Reloaded telemetry for object")
|
||||||
|
|
||||||
def set_source(self, source_dest, from_conv=False, from_telemetry=False, prefetched=None):
|
def set_source(self, source_dest, from_conv=False, from_telemetry=False, prefetched=None):
|
||||||
|
try:
|
||||||
self.object_hash = source_dest
|
self.object_hash = source_dest
|
||||||
own_address = self.app.sideband.lxmf_destination.hash
|
own_address = self.app.sideband.lxmf_destination.hash
|
||||||
telemetry_allowed = self.app.sideband.should_send_telemetry(source_dest)
|
telemetry_allowed = self.app.sideband.should_send_telemetry(source_dest)
|
||||||
@ -195,6 +196,11 @@ class ObjectDetails():
|
|||||||
|
|
||||||
self.telemetry_list.effect_cls = ScrollEffect
|
self.telemetry_list.effect_cls = ScrollEffect
|
||||||
Clock.schedule_once(djob, 0.1)
|
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):
|
def reload(self):
|
||||||
self.clear_widget()
|
self.clear_widget()
|
||||||
@ -282,6 +288,7 @@ class RVDetails(MDRecycleView):
|
|||||||
self.data = []
|
self.data = []
|
||||||
|
|
||||||
def update_source(self, rendered_telemetry=None):
|
def update_source(self, rendered_telemetry=None):
|
||||||
|
try:
|
||||||
if not rendered_telemetry:
|
if not rendered_telemetry:
|
||||||
rendered_telemetry = []
|
rendered_telemetry = []
|
||||||
|
|
||||||
@ -556,6 +563,11 @@ class RVDetails(MDRecycleView):
|
|||||||
|
|
||||||
self.data = self.entries
|
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 = """
|
layout_object_details = """
|
||||||
|
Loading…
Reference in New Issue
Block a user