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