From d3e4245d0f103c77a7a3a74c3b12910a3591f4ec Mon Sep 17 00:00:00 2001 From: Rebecca Date: Wed, 29 Oct 2025 14:29:17 +0000 Subject: [PATCH] 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. --- qutebrowser/config/config.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/qutebrowser/config/config.py b/qutebrowser/config/config.py index d286bf733..cd68c6fec 100644 --- a/qutebrowser/config/config.py +++ b/qutebrowser/config/config.py @@ -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."""