diff --git a/monkey/infection_monkey/telemetry/base_telem.py b/monkey/infection_monkey/telemetry/base_telem.py index da63353fc..7617ab4e3 100644 --- a/monkey/infection_monkey/telemetry/base_telem.py +++ b/monkey/infection_monkey/telemetry/base_telem.py @@ -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 diff --git a/monkey/infection_monkey/telemetry/system_info_telem.py b/monkey/infection_monkey/telemetry/system_info_telem.py index b0e7d779a..69ee7beda 100644 --- a/monkey/infection_monkey/telemetry/system_info_telem.py +++ b/monkey/infection_monkey/telemetry/system_info_telem.py @@ -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)