manager: configuration validation errors improvements
-
files.py
: log path that failed validation - error path: '_' replaced with '-'
- uniform formatting for single error and multiple errors
Single error:
INFO:knot_resolver_manager.server:Loading configuration from '/home/alesmrazek/src/knot-resolver/manager/etc/knot-resolver/config.dev.yaml' file.
ERROR:knot_resolver_manager.server:Configuration validation error detected:
[/local-data/rpz[0]/file] file '/home/alesmrazek/src/knot-resolver/manager/etc/knot-resolver/runtime/blocklist.rpz' does not exist
Multiple errors:
INFO:knot_resolver_manager.server:Loading configuration from '/home/alesmrazek/src/knot-resolver/manager/etc/knot-resolver/config.dev.yaml' file.
ERROR:knot_resolver_manager.server:Configuration validation errors detected:
[/local-data/rpz[0]/file] file '/home/alesmrazek/src/knot-resolver/manager/etc/knot-resolver/runtime/blocklist.rpz' does not exist
[/logging/groups[0]] 'managerr' does not match any of the expected values ('manager', 'supervisord', 'cache-gc'...