Rename Configuration.inspect to log_config_sources
The old name was misleading.
This commit is contained in:
parent
b962bed9d1
commit
a7f4ffa7d4
@ -51,8 +51,8 @@ def _init_application(config_path, wsgi_errors):
|
||||
config.DEFAULT_CONFIG_PATH,
|
||||
config_path))
|
||||
log.set_level(configuration.get("logging", "level"))
|
||||
# Inspect configuration after logger is configured
|
||||
configuration.inspect()
|
||||
# Log configuration after logger is configured
|
||||
configuration.log_config_sources()
|
||||
_application = Application(configuration)
|
||||
|
||||
|
||||
|
@ -119,8 +119,8 @@ def run():
|
||||
# Configure logging
|
||||
log.set_level(configuration.get("logging", "level"))
|
||||
|
||||
# Inspect configuration after logger is configured
|
||||
configuration.inspect()
|
||||
# Log configuration after logger is configured
|
||||
configuration.log_config_sources()
|
||||
|
||||
if args.verify_storage:
|
||||
logger.info("Verifying storage")
|
||||
|
@ -408,7 +408,7 @@ class Configuration:
|
||||
copy.update(config, source, allow_internal)
|
||||
return copy
|
||||
|
||||
def inspect(self):
|
||||
def log_config_sources(self):
|
||||
"""Inspect all external config sources and write problems to logger."""
|
||||
for config, source, internal in self._configs:
|
||||
if internal:
|
||||
|
Loading…
Reference in New Issue
Block a user