From 539f4e1c825447b8ff3fba163038d9a360e9f36f Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Wed, 28 Sep 2022 17:07:32 +0530 Subject: [PATCH] Agent: Fix self._island_api_client.send_log() call in ControlClient --- monkey/infection_monkey/control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/infection_monkey/control.py b/monkey/infection_monkey/control.py index 41b3511d9..22d0fac92 100644 --- a/monkey/infection_monkey/control.py +++ b/monkey/infection_monkey/control.py @@ -71,7 +71,7 @@ class ControlClient: def send_log(self, log): try: telemetry = {"monkey_guid": GUID, "log": json.dumps(log)} - self._island_api_client.send_log(json.dumps(telemetry)) + self._island_api_client.send_log(GUID, json.dumps(telemetry)) except Exception as exc: logger.warning(f"Error connecting to control server {self.server_address}: {exc}")