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:
parent
16cad8426a
commit
a2dfeab315
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user