Fixed bug introduce in logger due to invalid date naming replace : with -

This commit is contained in:
2024-10-10 14:29:36 +02:00
parent ea82af2cd5
commit 1954542031
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ def load_config_and_setup_logging(yaml_config_file_path, log_dir):
# Set up logging
date = utils.created_at()
date = utils.created_at().replace(":", "-")
utils.setup_logging(log_dir, f"integrate_data_sources_{date}.log")
# Load YAML configuration file

View File

@ -240,7 +240,7 @@ def copy_directory_with_contraints(input_dir_path, output_dir_path,
select_file_keywords = select_file_keywords or []
allowed_file_extensions = allowed_file_extensions or []
date = created_at()
date = created_at().replace(":", "-")
log_dir='logs/'
setup_logging(log_dir, f"copy_directory_with_contraints_{date}.log")