From cfd49db8d28ed8680033146e5c50d9b931f1e68e Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 3 Oct 2022 10:16:40 -0400 Subject: [PATCH] Island: Use logger.exception() --- monkey/monkey_island/cc/resources/agent_logs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/resources/agent_logs.py b/monkey/monkey_island/cc/resources/agent_logs.py index 74106ea93..53da43590 100644 --- a/monkey/monkey_island/cc/resources/agent_logs.py +++ b/monkey/monkey_island/cc/resources/agent_logs.py @@ -22,7 +22,7 @@ class AgentLogs(AbstractResource): try: log_contents = self._agent_log_repository.get_agent_log(agent_id) except UnknownRecordError as err: - logger.error(f"Error occurred while getting agent log: {err}") + logger.exception(f"Error occurred while getting agent log: {err}") return "", HTTPStatus.NOT_FOUND return log_contents, HTTPStatus.OK