Improved logging for configuration loading

- When loading a configuration file, if the configuration uses domain filtering then the domain filter expression is logged in the debug log.
This commit is contained in:
Rebecca 2025-10-29 14:29:17 +00:00 committed by Florian Bruhin
parent 3160048619
commit d3e4245d0f
1 changed files with 8 additions and 2 deletions

View File

@ -333,8 +333,14 @@ class Config(QObject):
pattern, hide_userconfig=hide_userconfig)
self.changed.emit(opt.name)
log.config.debug("Config option changed: {} = {}".format(
opt.name, value))
if pattern is not None:
log.config.debug("Config option changed: {} = {} for {}".format(
opt.name, value, pattern))
else:
log.config.debug("Config option changed: {} = {}".format(
opt.name, value))
def _check_yaml(self, opt: 'configdata.Option', save_yaml: bool) -> None:
"""Make sure the given option may be set in autoconfig.yml."""