From be5e8abc5a3354f92ba593d5700376b22410faa1 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 29 Oct 2021 20:41:44 +0200 Subject: Fix accessing log in earlyinit --- qutebrowser/misc/earlyinit.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf