Renamed display to log
This commit is contained in:
parent
fcfbef995b
commit
c00958ddcd
|
@ -17,16 +17,16 @@ class BaseTelem(object, metaclass=abc.ABCMeta):
|
|||
def __init__(self):
|
||||
pass
|
||||
|
||||
def send(self, display_data=True):
|
||||
def send(self, log_data=True):
|
||||
"""
|
||||
Sends telemetry to island
|
||||
"""
|
||||
data = self.get_data()
|
||||
if display_data:
|
||||
data_to_display = json.dumps(data)
|
||||
if log_data:
|
||||
data_to_log = json.dumps(data)
|
||||
else:
|
||||
data_to_display = 'redacted'
|
||||
logger.debug("Sending {} telemetry. Data: {}".format(self.telem_category, data_to_display))
|
||||
data_to_log = 'redacted'
|
||||
logger.debug("Sending {} telemetry. Data: {}".format(self.telem_category, data_to_log))
|
||||
ControlClient.send_telemetry(self.telem_category, data)
|
||||
|
||||
@property
|
||||
|
|
|
@ -18,5 +18,5 @@ class SystemInfoTelem(BaseTelem):
|
|||
def get_data(self):
|
||||
return self.system_info
|
||||
|
||||
def send(self, display_data=False):
|
||||
super(SystemInfoTelem, self).send(False)
|
||||
def send(self, log_data=False):
|
||||
super(SystemInfoTelem, self).send(log_data)
|
||||
|
|
Loading…
Reference in New Issue