1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-17 22:08:35 +00:00

Load faulthandler module only for dev build

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

View File

@ -19,7 +19,6 @@ import os
import sys
import struct
import platform
import faulthandler
try:
@ -38,6 +37,8 @@ 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")