From f84e4aed2c89e97e86cc5eb4668fcd7006ee3e36 Mon Sep 17 00:00:00 2001 From: Shreya Date: Mon, 10 May 2021 14:04:07 +0530 Subject: [PATCH] Set log filename in config before expanding its paths --- monkey/monkey_island/cc/server_utils/island_logger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monkey/monkey_island/cc/server_utils/island_logger.py b/monkey/monkey_island/cc/server_utils/island_logger.py index 4405db5e1..70a754810 100644 --- a/monkey/monkey_island/cc/server_utils/island_logger.py +++ b/monkey/monkey_island/cc/server_utils/island_logger.py @@ -48,11 +48,11 @@ def setup_logging( """ logger_configuration = deepcopy(LOGGER_CONFIG_DICT) - _expanduser_log_file_paths(logger_configuration) logger_configuration["root"]["level"] = log_level logger_configuration["handlers"]["info_file_handler"]["filename"] = os.path.join( data_dir_path, "monkey_island.log" ) + _expanduser_log_file_paths(logger_configuration) logging.config.dictConfig(logger_configuration)