summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-10-29 20:41:44 +0200
committerFlorian Bruhin <me@the-compiler.org>2021-10-29 20:41:53 +0200
commitbe5e8abc5a3354f92ba593d5700376b22410faa1 (patch)
tree10fbf5dbfca75f5ba6cf0e2d453fee0ea867cf68
parentaf56b285b409c650340f2b532a17a17dca955380 (diff)
downloadqutebrowser-be5e8abc5a3354f92ba593d5700376b22410faa1.tar.gz
qutebrowser-be5e8abc5a3354f92ba593d5700376b22410faa1.zip
Fix accessing log in earlyinit
-rw-r--r--qutebrowser/misc/earlyinit.py4
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