FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 6d0e043a authored by L. Bower's avatar L. Bower
Browse files

adding file-based logging to epi fit (to allow different configuration when running in gitlab-ci)

parent 7a91ef92
No related branches found
No related tags found
No related merge requests found
......@@ -146,7 +146,7 @@ class ProcessorBase:
Generate the job directory path
:param config:
:return:
:return:`
"""
short_name: str = config['short_name']
start_date: str = config['StartString']
......@@ -331,7 +331,7 @@ class ProcessorBase:
if k not in config.keys():
config[k] = v
else:
print(f"Key {k} already present in run config - not adding key with same name from "
print(f"Key '{k}' already present in run config - not adding key with same name from "
f"the sys_config")
"""
......@@ -340,7 +340,7 @@ class ProcessorBase:
"""
for k, v in args.items():
if k in config.keys():
print(f"Key {k} already present in run config - overriding key with same name from "
print(f"Key '{k}' already present in run config - overriding key with same name from "
f"the sys args")
config[k] = v
......
......@@ -396,7 +396,7 @@ def setup_logging(job_file_path: str,
with open(json_file_path, 'r') as f:
log_config_dict = json.load(f)
# replace the {arg_string} roken in the logging json with the values passed in the command line. This allows the
# replace the {arg_string} token in the logging json with the values passed in the command line. This allows the
# command line arguments to be logged.
log_config_dict['formatters']['detailed']['format'] = \
log_config_dict['formatters']['detailed']['format'].replace("{arg_string}", arg_string)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment