From c00958ddcdb029611d3aa411ddbb1857b20ee18f Mon Sep 17 00:00:00 2001 From: Ace Pace Date: Sun, 12 Apr 2020 19:58:20 +0300 Subject: [PATCH] Renamed display to log --- monkey/infection_monkey/telemetry/base_telem.py | 10 +++++----- monkey/infection_monkey/telemetry/system_info_telem.py | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) 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)