Brute force fix for #613

This commit is contained in:
Ace Pace 2020-04-12 15:02:28 +03:00
parent 3898872224
commit fcfbef995b
2 changed files with 9 additions and 2 deletions

View File

@ -17,12 +17,16 @@ class BaseTelem(object, metaclass=abc.ABCMeta):
def __init__(self):
pass
def send(self):
def send(self, display_data=True):
"""
Sends telemetry to island
"""
data = self.get_data()
logger.debug("Sending {} telemetry. Data: {}".format(self.telem_category, json.dumps(data)))
if display_data:
data_to_display = json.dumps(data)
else:
data_to_display = 'redacted'
logger.debug("Sending {} telemetry. Data: {}".format(self.telem_category, data_to_display))
ControlClient.send_telemetry(self.telem_category, data)
@property

View File

@ -17,3 +17,6 @@ class SystemInfoTelem(BaseTelem):
def get_data(self):
return self.system_info
def send(self, display_data=False):
super(SystemInfoTelem, self).send(False)