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:
parent
3160048619
commit
d3e4245d0f
|
|
@ -333,8 +333,14 @@ class Config(QObject):
|
||||||
pattern, hide_userconfig=hide_userconfig)
|
pattern, hide_userconfig=hide_userconfig)
|
||||||
|
|
||||||
self.changed.emit(opt.name)
|
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:
|
def _check_yaml(self, opt: 'configdata.Option', save_yaml: bool) -> None:
|
||||||
"""Make sure the given option may be set in autoconfig.yml."""
|
"""Make sure the given option may be set in autoconfig.yml."""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue