From 9ca87a3061388c34c7544e9712ccc2124a296161 Mon Sep 17 00:00:00 2001 From: Adam Kariv Date: Sat, 18 Nov 2023 17:16:37 +0200 Subject: [PATCH] Debug startup --- budgetkey_api/flask_app.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/budgetkey_api/flask_app.py b/budgetkey_api/flask_app.py index f2d0cbd..bd1c87c 100644 --- a/budgetkey_api/flask_app.py +++ b/budgetkey_api/flask_app.py @@ -65,17 +65,25 @@ def create_flask_app(session_file_dir=None, cache_dir=None, services=None): services = services.split(',') if 'es' in services: + log.info("Setting up ES") from .modules.search import setup_search setup_search(app) + log.info("ES setup complete") if 'db' in services: + log.info("Setting up DB") from .modules.query import setup_query setup_query(app, cache) + log.info("DB setup complete") if 'auth' in services: + log.info("Setting up Auth") from .modules.auth import setup_auth setup_auth(app) + log.info("Auth setup complete") if 'lists' in services: + log.info("Setting up Lists") from .modules.list_manager import setup_list_manager setup_list_manager(app) + log.info("Lists setup complete") app.after_request(add_cache_header) app.before_request(logging_before)