From 74e30a2f8843dd357b7f0e139474659d94267c3c Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Wed, 28 Sep 2022 17:06:56 +0530 Subject: [PATCH] Agent: Update API endpoint in HTTPIslandAPIClient.send_log() --- .../island_api_client/http_island_api_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,