From 8dc84ee0f75bee6cecc0484b509b615b46218d38 Mon Sep 17 00:00:00 2001 From: Shreya Date: Tue, 11 May 2021 17:56:49 +0530 Subject: [PATCH] Assume configured data directory exists when configuring the logger --- monkey/monkey_island/cc/server_utils/island_logger.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/monkey/monkey_island/cc/server_utils/island_logger.py b/monkey/monkey_island/cc/server_utils/island_logger.py index dd00cb0d7..abc0bba9d 100644 --- a/monkey/monkey_island/cc/server_utils/island_logger.py +++ b/monkey/monkey_island/cc/server_utils/island_logger.py @@ -46,9 +46,6 @@ def setup_logging(data_dir_path, log_level): logger_configuration = deepcopy(LOGGER_CONFIG_DICT) - if not os.path.exists(data_dir_path): - os.makedirs(data_dir_path, mode=0o700, exist_ok=True) - logger_configuration["handlers"]["info_file_handler"]["filename"] = os.path.join( data_dir_path, "monkey_island.log" )