Fixed bug introduce in logger due to invalid date naming replace : with -
This commit is contained in:
@ -33,7 +33,7 @@ def load_config_and_setup_logging(yaml_config_file_path, log_dir):
|
|||||||
|
|
||||||
|
|
||||||
# Set up logging
|
# Set up logging
|
||||||
date = utils.created_at()
|
date = utils.created_at().replace(":", "-")
|
||||||
utils.setup_logging(log_dir, f"integrate_data_sources_{date}.log")
|
utils.setup_logging(log_dir, f"integrate_data_sources_{date}.log")
|
||||||
|
|
||||||
# Load YAML configuration file
|
# Load YAML configuration file
|
||||||
|
@ -240,7 +240,7 @@ def copy_directory_with_contraints(input_dir_path, output_dir_path,
|
|||||||
select_file_keywords = select_file_keywords or []
|
select_file_keywords = select_file_keywords or []
|
||||||
allowed_file_extensions = allowed_file_extensions or []
|
allowed_file_extensions = allowed_file_extensions or []
|
||||||
|
|
||||||
date = created_at()
|
date = created_at().replace(":", "-")
|
||||||
log_dir='logs/'
|
log_dir='logs/'
|
||||||
setup_logging(log_dir, f"copy_directory_with_contraints_{date}.log")
|
setup_logging(log_dir, f"copy_directory_with_contraints_{date}.log")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user