mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-05 06:41:13 +02:00
Load faulthandler module only for dev build
This commit is contained in:
1 parent
16cad8426a
commit
a2dfeab315
1 file changed
+2
-1
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user