Skip to content

Commit

Permalink
Debug startup
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Nov 18, 2023
1 parent 902a385 commit 9ca87a3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions budgetkey_api/flask_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9ca87a3

Please sign in to comment.