Add debug log for database connection at boot

This commit is contained in:
phil 2024-10-24 16:40:36 +02:00
parent 720fb0ae57
commit ee5bc1b432

View file

@ -33,6 +33,7 @@ async def create_db(drop=False):
await conn.run_sync(SQLModel.metadata.drop_all)
await conn.run_sync(SQLModel.metadata.create_all)
logger.debug(f'Connect to database with config: {conf.db}')
while attempts > 0:
try:
await try_once()