Disclose location of the database file in warnings

As it's useful to debug.
This commit is contained in:
Alexis Métaireau 2018-08-05 17:35:40 +02:00
parent 54803a9f1f
commit 3ef08c46c7

View file

@ -32,7 +32,7 @@ def setup_database(app):
if sqlalchemy_url.startswith('sqlite:////tmp'):
warnings.warn(
'The database is currently stored in /tmp and might be lost at '
'next reboot.'
'next reboot (%s).' % sqlalchemy_url
)
db.init_app(app)