Rename Configuration.inspect to log_config_sources

The old name was misleading.
This commit is contained in:
Unrud 2020-01-12 23:32:25 +01:00
parent b962bed9d1
commit a7f4ffa7d4
3 changed files with 5 additions and 5 deletions

View File

@ -51,8 +51,8 @@ def _init_application(config_path, wsgi_errors):
config.DEFAULT_CONFIG_PATH, config.DEFAULT_CONFIG_PATH,
config_path)) config_path))
log.set_level(configuration.get("logging", "level")) log.set_level(configuration.get("logging", "level"))
# Inspect configuration after logger is configured # Log configuration after logger is configured
configuration.inspect() configuration.log_config_sources()
_application = Application(configuration) _application = Application(configuration)

View File

@ -119,8 +119,8 @@ def run():
# Configure logging # Configure logging
log.set_level(configuration.get("logging", "level")) log.set_level(configuration.get("logging", "level"))
# Inspect configuration after logger is configured # Log configuration after logger is configured
configuration.inspect() configuration.log_config_sources()
if args.verify_storage: if args.verify_storage:
logger.info("Verifying storage") logger.info("Verifying storage")

View File

@ -408,7 +408,7 @@ class Configuration:
copy.update(config, source, allow_internal) copy.update(config, source, allow_internal)
return copy return copy
def inspect(self): def log_config_sources(self):
"""Inspect all external config sources and write problems to logger.""" """Inspect all external config sources and write problems to logger."""
for config, source, internal in self._configs: for config, source, internal in self._configs:
if internal: if internal: