enable faulthandler to hopefully see seg faults in the logs w/ burnettk jbirddog

This commit is contained in:
jasquat 2023-02-08 11:42:11 -05:00
parent 5b22f46ed1
commit 16b2c96171
1 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
"""__init__."""
import os
import sys
import faulthandler
from typing import Any
import connexion # type: ignore
@ -80,6 +81,8 @@ def start_scheduler(
def create_app() -> flask.app.Flask:
"""Create_app."""
faulthandler.enable()
# We need to create the sqlite database in a known location.
# 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