diff options
author | Florian Bruhin <me@the-compiler.org> | 2020-02-12 13:30:59 +0100 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2020-02-13 12:06:33 +0100 |
commit | 303bc0217526f44790a3c4f267a8d5c2d579c3cf (patch) | |
tree | 7ae57a66ff185f884061497b627607cc71fdeacb | |
parent | ee05b3bd85fa5d244494ecdec0e5b36dbed15260 (diff) | |
download | qutebrowser-303bc0217526f44790a3c4f267a8d5c2d579c3cf.tar.gz qutebrowser-303bc0217526f44790a3c4f267a8d5c2d579c3cf.zip |
Improve command-line output for config errors
This way, we get the proper traceback on stdout (even with the default
loglevel), and not the resulting exception traceback we're not very interested
in.
See #5223
(cherry picked from commit 14076540ff29952e3805496e755657557b4c8f59)
-rw-r--r-- | qutebrowser/config/configexc.py | 3 | ||||
-rw-r--r-- | qutebrowser/config/configinit.py | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/qutebrowser/config/configexc.py b/qutebrowser/config/configexc.py index 63b59c6e7..b409bc883 100644 --- a/qutebrowser/config/configexc.py +++ b/qutebrowser/config/configexc.py @@ -150,8 +150,7 @@ class ConfigFileErrors(Error): self.fatal = fatal for err in errors: if err.traceback: - log.config.debug("Config error stack:") - log.config.debug(err.traceback) + log.config.info(err.traceback) def to_html(self) -> str: """Get the error texts as a HTML snippet.""" diff --git a/qutebrowser/config/configinit.py b/qutebrowser/config/configinit.py index 20f40420d..351030789 100644 --- a/qutebrowser/config/configinit.py +++ b/qutebrowser/config/configinit.py @@ -68,7 +68,7 @@ def early_init(args: argparse.Namespace) -> None: else: configfiles.read_autoconfig() except configexc.ConfigFileErrors as e: - log.config.exception("Error while loading {}".format(e.basename)) + log.config.error("Error while loading {}".format(e.basename)) _init_errors = e try: |