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.
This commit is contained in:
Damien Elmes 2021-06-24 10:08:31 +10:00
parent df53f7f789
commit d85f978b72

View File

@ -3,7 +3,6 @@
from __future__ import annotations from __future__ import annotations
import enum import enum
import faulthandler
import gc import gc
import os import os
import re import re
@ -153,7 +152,6 @@ class AnkiQt(QMainWindow):
def setupUI(self) -> None: def setupUI(self) -> None:
self.col = None self.col = None
self.setupCrashLog()
self.disable_automatic_garbage_collection() self.disable_automatic_garbage_collection()
self.setupAppMsg() self.setupAppMsg()
self.setupKeys() self.setupKeys()
@ -1679,14 +1677,6 @@ title="%s" %s>%s</button>""" % (
setupDialogGC = garbage_collect_on_dialog_finish setupDialogGC = garbage_collect_on_dialog_finish
gcWindow = deferred_delete_and_garbage_collect 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 # Media server
########################################################################## ##########################################################################