Agent: Add agent_id parameter to IIslandAPIClient.send_log()

This commit is contained in:
Shreya Malviya 2022-09-28 17:04:11 +05:30 committed by Mike Salvatore
parent 4f3fd6987e
commit a9e1b99f2f
1 changed files with 2 additions and 1 deletions

View File

@ -30,10 +30,11 @@ class IIslandAPIClient(ABC):
"""
@abstractmethod
def send_log(self, log_contents: str):
def send_log(self, agent_id: int, log_contents: str):
"""
Send the contents of the agent's log to the island
:param agent_id: The ID of the agent whose logs are being sent
:param log_contents: The contents of the agent's log
:raises IslandAPIConnectionError: If the client cannot successfully connect to the island
:raises IslandAPIRequestError: If an error occurs while attempting to connect to the