|
|
@@ -2,7 +2,8 @@
|
|
|
# Copyright © 2008 Nicolas Kandel
|
|
|
# Copyright © 2008 Pascal Halter
|
|
|
# Copyright © 2008-2017 Guillaume Ayoub
|
|
|
-# Copyright © 2017-2019 Unrud <unrud@outlook.com>
|
|
|
+# Copyright © 2017-2022 Unrud <unrud@outlook.com>
|
|
|
+# Copyright © 2024-2024 Peter Bieringer <pb@bieringer.de>
|
|
|
#
|
|
|
# This library is free software: you can redistribute it and/or modify
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
@@ -53,9 +54,14 @@ def _get_application_instance(config_path: str, wsgi_errors: types.ErrorStream
|
|
|
config_path))
|
|
|
log.set_level(cast(str, configuration.get("logging", "level")))
|
|
|
# Log configuration after logger is configured
|
|
|
+ default_config_active = True
|
|
|
for source, miss in configuration.sources():
|
|
|
- logger.info("%s %s", "Skipped missing" if miss
|
|
|
+ logger.info("%s %s", "Skipped missing/unreadable" if miss
|
|
|
else "Loaded", source)
|
|
|
+ if not miss and source != "default config":
|
|
|
+ default_config_active = False
|
|
|
+ if default_config_active:
|
|
|
+ logger.warn("%s", "No config file found/readable - only default config is active")
|
|
|
_application_instance = Application(configuration)
|
|
|
if _application_config_path != config_path:
|
|
|
raise ValueError("RADICALE_CONFIG must not change: %r != %r" %
|