Island: Change log level in AgentLogs endpoint

This commit is contained in:
Ilija Lazoroski 2022-09-28 16:43:33 +02:00
parent d0293b4edc
commit 1a8306af1b
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ class AgentLogs(AbstractResource):
try:
log_contents = self._agent_log_repository.get_agent_log(agent_id)
except UnknownRecordError as err:
logger.debug(f"Error occured while getting agent log: {err}")
logger.error(f"Error occured while getting agent log: {err}")
return {}, HTTPStatus.NOT_FOUND
return log_contents, HTTPStatus.OK