added the exc_info flag #10

Merged
Arsen Mirzaev Tatyano-Muradovich merged 1 commits from Alex/stcs:dev into stable 2025-10-07 12:10:59 +07:00

View File

@@ -21,4 +21,4 @@ async def init_db():
await conn.run_sync(Base.metadata.create_all)
logger.info("Database initialized.")
except Exception as e:
logger.error("Database initialization failed: %s", e)
logger.error("Database initialization failed: %s", e, exc_info=True)