From d85f978b727b39b5b5c3eb1f9ac9775bda8ec821 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 24 Jun 2021 10:08:31 +1000 Subject: [PATCH] drop crash.log support I don't recall it ever helping to resolve a bug, and presumably we can still use it in the future via the PYTHONFAULTHANDLER env var if necessary. --- qt/aqt/main.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/qt/aqt/main.py b/qt/aqt/main.py index 296ef23f4..c993abe6e 100644 --- a/qt/aqt/main.py +++ b/qt/aqt/main.py @@ -3,7 +3,6 @@ from __future__ import annotations import enum -import faulthandler import gc import os import re @@ -153,7 +152,6 @@ class AnkiQt(QMainWindow): def setupUI(self) -> None: self.col = None - self.setupCrashLog() self.disable_automatic_garbage_collection() self.setupAppMsg() self.setupKeys() @@ -1679,14 +1677,6 @@ title="%s" %s>%s""" % ( setupDialogGC = garbage_collect_on_dialog_finish gcWindow = deferred_delete_and_garbage_collect - # Crash log - ########################################################################## - - def setupCrashLog(self) -> None: - p = os.path.join(self.pm.base, "crash.log") - self._crashLog = open(p, "ab", 0) - faulthandler.enable(self._crashLog) - # Media server ##########################################################################