Remove unneeded informations from segfault crash dialog
This commit is contained in:
parent
6cc178aa52
commit
87ddfc418e
@ -104,18 +104,12 @@ class _CrashDialog(QDialog):
|
||||
"""
|
||||
self._crash_info = [
|
||||
("Version info", version()),
|
||||
("Commandline args", ' '.join(sys.argv[1:])),
|
||||
]
|
||||
try:
|
||||
self._crash_info.append(("Config",
|
||||
config.instance().dump_userconfig()))
|
||||
except AttributeError:
|
||||
pass
|
||||
try:
|
||||
self._crash_info.append(("Debug log",
|
||||
logutils.ram_handler.dump_log()))
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
def _format_crash_info(self):
|
||||
"""Format the gathered crash info to be displayed.
|
||||
@ -198,9 +192,15 @@ class ExceptionCrashDialog(_CrashDialog):
|
||||
super()._gather_crash_info()
|
||||
self._crash_info += [
|
||||
("Exception", ''.join(traceback.format_exception(*self._exc))),
|
||||
("Commandline args", ' '.join(sys.argv[1:])),
|
||||
("Open Pages", '\n'.join(self._pages)),
|
||||
("Command history", '\n'.join(self._cmdhist)),
|
||||
]
|
||||
try:
|
||||
self._crash_info.append(("Debug log",
|
||||
logutils.ram_handler.dump_log()))
|
||||
except AttributeError:
|
||||
pass
|
||||
|
||||
|
||||
class FatalCrashDialog(_CrashDialog):
|
||||
|
Loading…
Reference in New Issue
Block a user