Просмотр исходного кода

Rename Configuration.inspect to log_config_sources

The old name was misleading.
Unrud 6 лет назад
Родитель
Сommit
a7f4ffa7d4
3 измененных файлов с 5 добавлено и 5 удалено
  1. 2 2
      radicale/__init__.py
  2. 2 2
      radicale/__main__.py
  3. 1 1
      radicale/config.py

+ 2 - 2
radicale/__init__.py

@@ -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)
 
 

+ 2 - 2
radicale/__main__.py

@@ -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")

+ 1 - 1
radicale/config.py

@@ -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: