From 45c6e20e5bd784a009b26d7ed4d95dfc986bc61f Mon Sep 17 00:00:00 2001 From: nd <git@notandy.de> Date: Thu, 4 Nov 2021 17:36:58 +0100 Subject: [PATCH] added debug output --- roac/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roac/__init__.py b/roac/__init__.py index 234fb43..fc2bde2 100644 --- a/roac/__init__.py +++ b/roac/__init__.py @@ -16,7 +16,9 @@ def create_app(test_config=None): app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///{}'.format(os.path.join(app.instance_path, 'db.sqlite')) app.config.from_pyfile('default_config.py') if not test_config: - app.config.from_pyfile(os.path.join(app.instance_path, 'config.py'), silent=True) + path = os.path.join(app.instance_path, 'config.py') + print('loading config: {}'.format(path)) + app.config.from_pyfile(path, silent=True) else: app.config.from_mapping(test_config) # OAuth2Session.fetch_token verifies that the passed URIs scheme (the scheme @@ -219,6 +221,7 @@ def create_app(test_config=None): return redirect(url_for('index')) os.makedirs(app.instance_path, exist_ok=True) + print('db uri: {}'.format(app.config['SQLALCHEMY_DATABASE_URI'])) with app.app_context(): db.create_all() -- GitLab