Agent: Update API endpoint in HTTPIslandAPIClient.send_log()

This commit is contained in:
Shreya Malviya 2022-09-28 17:06:56 +05:30 committed by Mike Salvatore
parent a9e1b99f2f
commit 74e30a2f88
1 changed files with 2 additions and 2 deletions

View File

@ -92,9 +92,9 @@ class HTTPIslandAPIClient(IIslandAPIClient):
self._api_url = f"https://{island_server}/api" self._api_url = f"https://{island_server}/api"
@handle_island_errors @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 response = requests.post( # noqa: DUO123
f"{self._api_url}/log", f"{self._api_url}/agent-logs/{agent_id}",
json=log_contents, json=log_contents,
verify=False, verify=False,
timeout=MEDIUM_REQUEST_TIMEOUT, timeout=MEDIUM_REQUEST_TIMEOUT,