debug: log DATA_DIR and database path at startup

This commit is contained in:
Daniel Bedeleanu
2026-04-11 15:28:53 +03:00
parent c95d095f9f
commit cee93fe53c

View File

@@ -9,6 +9,9 @@ from .routers import items, operations, users, categories
from .logger import log
# Create the database tables
from .database import DATA_DIR, db_path
log.info(f"Using DATA_DIR: {DATA_DIR}")
log.info(f"Database path: {db_path}")
models.Base.metadata.create_all(bind=engine)
log.info("Database tables verified.")