Add debug printout when reading config file

Add a debug printout when reading the (extra) config files(s).
This commit is contained in:
Frank Winklmeier 2022-02-22 17:40:17 +01:00
parent 8c1ed24738
commit cb9e147770

View file

@ -61,6 +61,7 @@ def load_config(
cfg = configparser.RawConfigParser()
if config is not None:
LOG.debug("Reading config file %s", config)
if not cfg.read(config, encoding="UTF-8"):
raise exceptions.ExecutionError(
f"The specified config file does not exist: {config}"
@ -72,6 +73,7 @@ def load_config(
# TODO: remove this and replace it with configuration modifying plugins
# read the additional configs afterwards
for filename in extra:
LOG.debug("Reading extra config file %s", config)
cfg.read(filename, encoding="UTF-8")
return cfg, cfg_dir