From 3ef08c46c7b269184a283ef921d6d211c7e33e3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Sun, 5 Aug 2018 17:35:40 +0200 Subject: [PATCH] Disclose location of the database file in warnings As it's useful to debug. --- ihatemoney/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ihatemoney/run.py b/ihatemoney/run.py index 6dac2330..89b5e6e3 100644 --- a/ihatemoney/run.py +++ b/ihatemoney/run.py @@ -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)