added the exc_info flag

This commit is contained in:
algizn97
2025-10-07 09:44:02 +05:00
parent c49df2794d
commit f5677e6e7e

View File

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