mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: make logfire disabled by default
Initially started by https://github.com/learnhouse/learnhouse/pull/496
This commit is contained in:
parent
b425cd2984
commit
05abc93017
4 changed files with 20 additions and 4 deletions
|
|
@ -58,7 +58,7 @@ else:
|
|||
# Only create tables if not in test mode (tests will handle this themselves)
|
||||
if not is_testing:
|
||||
SQLModel.metadata.create_all(engine)
|
||||
logfire.instrument_sqlalchemy(engine=engine)
|
||||
# Note: logfire instrumentation will be handled in app.py after configuration
|
||||
|
||||
async def connect_to_db(app: FastAPI):
|
||||
app.db_engine = engine # type: ignore
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue