mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 20:51:49 +02:00
Disclose location of the database file in warnings
As it's useful to debug.
This commit is contained in:
parent
54803a9f1f
commit
3ef08c46c7
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ def setup_database(app):
|
||||||
if sqlalchemy_url.startswith('sqlite:////tmp'):
|
if sqlalchemy_url.startswith('sqlite:////tmp'):
|
||||||
warnings.warn(
|
warnings.warn(
|
||||||
'The database is currently stored in /tmp and might be lost at '
|
'The database is currently stored in /tmp and might be lost at '
|
||||||
'next reboot.'
|
'next reboot (%s).' % sqlalchemy_url
|
||||||
)
|
)
|
||||||
|
|
||||||
db.init_app(app)
|
db.init_app(app)
|
||||||
|
|
Loading…
Reference in a new issue