added the exc_info flag
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user