mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-06 13:06:53 +00:00
Add debug printout when reading config file
Add a debug printout when reading the (extra) config files(s).
This commit is contained in:
parent
8c1ed24738
commit
cb9e147770
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue