Brute force fix for #613
This commit is contained in:
parent
3898872224
commit
fcfbef995b
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue