1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-13 20:08:55 +00:00

Enable faulthandler only for dev build

This commit is contained in:
Julien Duponchelle 2015-05-28 12:17:25 +02:00
parent 0476f2932e
commit 16cad8426a

View File

@ -21,8 +21,6 @@ import struct
import platform
import faulthandler
# Display a traceback in case of segfault crash. Usefull when frozen
faulthandler.enable()
try:
import raven
@ -38,6 +36,14 @@ import logging
log = logging.getLogger(__name__)
# Dev build
if __version__[4] != 0:
# Display a traceback in case of segfault crash. Usefull when frozen
# Not enabled by default for security reason
log.info("Enable catching segfault")
faulthandler.enable()
class CrashReport:
"""