From 82e92e39e4b94fdb030188e3ae4eaf00261b0c5c Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Tue, 2 Aug 2022 18:11:25 +0530 Subject: [PATCH] Island: Use get_file_contents() in IslandLog --- monkey/monkey_island/cc/resources/island_logs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/monkey_island/cc/resources/island_logs.py b/monkey/monkey_island/cc/resources/island_logs.py index e9eb7ea63..e492bacb8 100644 --- a/monkey/monkey_island/cc/resources/island_logs.py +++ b/monkey/monkey_island/cc/resources/island_logs.py @@ -3,7 +3,7 @@ from pathlib import Path from monkey_island.cc.resources.AbstractResource import AbstractResource from monkey_island.cc.resources.request_authentication import jwt_required -from monkey_island.cc.server_utils.island_logger import get_log_file_contents +from monkey_island.cc.server_utils.file_utils import get_file_contents logger = logging.getLogger(__name__) @@ -17,6 +17,6 @@ class IslandLog(AbstractResource): @jwt_required def get(self): try: - return get_log_file_contents(self._island_log_file_path) + return get_file_contents(self._island_log_file_path) except Exception: logger.error("Monkey Island logs failed to download", exc_info=True)