Assume configured data directory exists when configuring the logger

This commit is contained in:
Shreya 2021-05-11 17:56:49 +05:30
parent 0556465c6a
commit 8dc84ee0f7
1 changed files with 0 additions and 3 deletions

View File

@ -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"
)