diff --git a/monkey/infection_monkey/island_api_client/http_island_api_client.py b/monkey/infection_monkey/island_api_client/http_island_api_client.py index 624a2c504..7c7215589 100644 --- a/monkey/infection_monkey/island_api_client/http_island_api_client.py +++ b/monkey/infection_monkey/island_api_client/http_island_api_client.py @@ -92,9 +92,9 @@ class HTTPIslandAPIClient(IIslandAPIClient): self._api_url = f"https://{island_server}/api" @handle_island_errors - def send_log(self, log_contents: str): + def send_log(self, agent_id: int, log_contents: str): response = requests.post( # noqa: DUO123 - f"{self._api_url}/log", + f"{self._api_url}/agent-logs/{agent_id}", json=log_contents, verify=False, timeout=MEDIUM_REQUEST_TIMEOUT,