diff options
author | Florian Bruhin <me@the-compiler.org> | 2021-10-29 20:41:44 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2021-11-26 17:04:48 +0100 |
commit | 83d80fcdd63b249edb0b4d886ee3026ffc8c9d12 (patch) | |
tree | 081fbeed72e3345c753228b9eebdd303df304c52 | |
parent | 938a5318d822f7b9b6909de3952d2e067198ac7a (diff) | |
download | qutebrowser-83d80fcdd63b249edb0b4d886ee3026ffc8c9d12.tar.gz qutebrowser-83d80fcdd63b249edb0b4d886ee3026ffc8c9d12.zip |
Fix accessing log in earlyinit
(cherry picked from commit be5e8abc5a3354f92ba593d5700376b22410faa1)
-rw-r--r-- | qutebrowser/misc/earlyinit.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/qutebrowser/misc/earlyinit.py b/qutebrowser/misc/earlyinit.py index 1863dedb3..696cc7f8a 100644 --- a/qutebrowser/misc/earlyinit.py +++ b/qutebrowser/misc/earlyinit.py @@ -123,7 +123,9 @@ def init_faulthandler(fileobj=sys.__stderr__): # Later when we have our data dir available we re-enable faulthandler # to write to a file so we can display a crash to the user at the next # start. - log.debug(f"Failed to enable early faulthandler: {e}", exc_info=True) + # + # Note that we don't have any logging initialized yet at this point, so + # this is a silent error. return if (hasattr(faulthandler, 'register') and hasattr(signal, 'SIGUSR1') and |