From cb9e147770965a16071a3b5f6fd2c9b6577346b8 Mon Sep 17 00:00:00 2001 From: Frank Winklmeier Date: Tue, 22 Feb 2022 17:40:17 +0100 Subject: [PATCH] Add debug printout when reading config file Add a debug printout when reading the (extra) config files(s). --- src/flake8/options/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/flake8/options/config.py b/src/flake8/options/config.py index 9756e7d..c14579b 100644 --- a/src/flake8/options/config.py +++ b/src/flake8/options/config.py @@ -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