diff --git a/gns3server/crash_report.py b/gns3server/crash_report.py index a18d4335..fbbcfe5f 100644 --- a/gns3server/crash_report.py +++ b/gns3server/crash_report.py @@ -19,10 +19,7 @@ import os import sys import struct import platform -import faulthandler -# Display a traceback in case of segfault crash. Usefull when frozen -faulthandler.enable() try: import raven @@ -39,6 +36,16 @@ import logging log = logging.getLogger(__name__) +# Dev build +if __version__[4] != 0: + import faulthandler + + # 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: """