From 96bae42388c574957b912572a1c1d495d3e51477 Mon Sep 17 00:00:00 2001 From: Shreya Malviya Date: Tue, 2 Aug 2022 12:28:24 +0530 Subject: [PATCH] Island: Fix type hint in cc/server_utils/island_logger.py --- monkey/monkey_island/cc/server_utils/island_logger.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/monkey/monkey_island/cc/server_utils/island_logger.py b/monkey/monkey_island/cc/server_utils/island_logger.py index 568f4ddef..07090214a 100644 --- a/monkey/monkey_island/cc/server_utils/island_logger.py +++ b/monkey/monkey_island/cc/server_utils/island_logger.py @@ -2,7 +2,6 @@ import logging import logging.handlers import sys from pathlib import Path -from typing import Mapping ISLAND_LOG_FILENAME = "monkey_island.log" LOG_FORMAT = "%(asctime)s - %(levelname)s - %(filename)s:%(lineno)s - %(funcName)s() - %(message)s" @@ -34,7 +33,7 @@ def get_log_file_path(data_dir: Path) -> Path: return data_dir / ISLAND_LOG_FILENAME -def get_log_file_contents(log_file_path: Path) -> Mapping: +def get_log_file_contents(log_file_path: Path) -> str: with open(log_file_path, "rt") as f: log_file = f.read() return log_file