mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-28 02:05:52 +00:00
enable faulthandler to hopefully see seg faults in the logs w/ burnettk jbirddog
This commit is contained in:
parent
368330f561
commit
9b3a2e2fb2
@ -1,6 +1,7 @@
|
|||||||
"""__init__."""
|
"""__init__."""
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import faulthandler
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
import connexion # type: ignore
|
import connexion # type: ignore
|
||||||
@ -80,6 +81,8 @@ def start_scheduler(
|
|||||||
|
|
||||||
def create_app() -> flask.app.Flask:
|
def create_app() -> flask.app.Flask:
|
||||||
"""Create_app."""
|
"""Create_app."""
|
||||||
|
faulthandler.enable()
|
||||||
|
|
||||||
# We need to create the sqlite database in a known location.
|
# We need to create the sqlite database in a known location.
|
||||||
# If we rely on the app.instance_path without setting an environment
|
# If we rely on the app.instance_path without setting an environment
|
||||||
# variable, it will be one thing when we run flask db upgrade in the
|
# variable, it will be one thing when we run flask db upgrade in the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user