diff options
Diffstat (limited to 'gn3/app.py')
-rw-r--r-- | gn3/app.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -7,6 +7,7 @@ from typing import Union from flask import Flask from flask_cors import CORS # type: ignore +from gn3.loggers import setup_app_handlers from gn3.api.gemma import gemma from gn3.api.rqtl import rqtl from gn3.api.general import general @@ -42,6 +43,9 @@ def create_app(config: Union[Dict, str, None] = None) -> Flask: elif config.endswith(".py"): app.config.from_pyfile(config) + # DO NOT log anything before this point + setup_app_handlers(app) + CORS( app, origins=app.config["CORS_ORIGINS"], |