Disable sql requests printing

This commit is contained in:
2024-06-15 18:24:46 +04:00
parent 563560c5e3
commit c516ba920c
2 changed files with 1 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ DATABASE_URL = Env.get_strict("SQLALCHEMY_DATABASE_URL", str)
# DATABASE_URL = "postgresql://user:password@postgresserver/db"
engine = create_async_engine(
DATABASE_URL, connect_args={"check_same_thread": False}, echo=True
DATABASE_URL, connect_args={"check_same_thread": False} # , echo=True
)
async_session = sessionmaker( # type: ignore
engine, class_=AsyncSession, expire_on_commit=False) # type: ignore