Add debug log for database connection at boot
This commit is contained in:
parent
720fb0ae57
commit
ee5bc1b432
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ async def create_db(drop=False):
|
||||||
await conn.run_sync(SQLModel.metadata.drop_all)
|
await conn.run_sync(SQLModel.metadata.drop_all)
|
||||||
await conn.run_sync(SQLModel.metadata.create_all)
|
await conn.run_sync(SQLModel.metadata.create_all)
|
||||||
|
|
||||||
|
logger.debug(f'Connect to database with config: {conf.db}')
|
||||||
while attempts > 0:
|
while attempts > 0:
|
||||||
try:
|
try:
|
||||||
await try_once()
|
await try_once()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue