Set log filename in config before expanding its paths

This commit is contained in:
Shreya 2021-05-10 14:04:07 +05:30
parent 785f2ef77d
commit f84e4aed2c
1 changed files with 1 additions and 1 deletions

View File

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