From 70b8ebef582e42daf822e01a7003f751e0a01cf1 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sun, 17 Mar 2024 01:08:42 +0100 Subject: [PATCH] Fixed automatic telemetry updates from collector not being initiated --- sbapp/sideband/core.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sbapp/sideband/core.py b/sbapp/sideband/core.py index a29f2fa..bacd598 100644 --- a/sbapp/sideband/core.py +++ b/sbapp/sideband/core.py @@ -2682,7 +2682,11 @@ class SidebandCore(): RNS.log("Next telemetry request is "+("in "+RNS.prettytime(next_request-now) if next_request-now > 0 else "now"), RNS.LOG_EXTREME) if now > last_request_timebase+request_interval: - RNS.log("Initiating telemetry request to collector", RNS.LOG_DEBUG) + try: + RNS.log("Initiating telemetry request to collector", RNS.LOG_DEBUG) + self.request_latest_telemetry(from_addr=self.config["telemetry_collector"]) + except Exception as e: + RNS.log("An error occurred while requesting a telemetry update from collector. The contained exception was: "+str(e), RNS.LOG_ERROR) except Exception as e: RNS.log("An error occurred while requesting scheduled telemetry from collector: "+str(e), RNS.LOG_ERROR)