Skip to content

Commit

Permalink
Disable echo in SQLAlchemy
Browse files Browse the repository at this point in the history
  • Loading branch information
credbbl committed Dec 12, 2023
1 parent 264d7b1 commit 8ebd1da
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/glvd/cli/combine_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ async def __call__(
args = parser.parse_args()
engine = create_async_engine(
"postgresql+asyncpg:///",
echo=True,
)
main = CombineDeb()
asyncio.run(main(engine))
1 change: 0 additions & 1 deletion src/glvd/cli/combine_deb.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ async def __call__(
args = parser.parse_args()
engine = create_async_engine(
"postgresql+asyncpg:///",
echo=True,
)
main = CombineDeb()
asyncio.run(main(engine))
1 change: 0 additions & 1 deletion src/glvd/cli/ingest_debsec.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ async def __call__(
args = parser.parse_args()
engine = create_async_engine(
"postgresql+asyncpg:///",
echo=True,
)
ingest = IngestDebsec(args.cpe_product, args.dir)
asyncio.run(ingest(engine))
1 change: 0 additions & 1 deletion src/glvd/cli/ingest_debsrc.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ async def __call__(
args = parser.parse_args()
engine = create_async_engine(
"postgresql+asyncpg:///",
echo=True,
)
ingest = IngestDebsrc(args.cpe_product, args.deb_codename, args.file)
asyncio.run(ingest(engine))
1 change: 0 additions & 1 deletion src/glvd/cli/ingest_nvd.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ async def __call__(self, engine: AsyncEngine) -> None:
logging.basicConfig(level=logging.DEBUG)
engine = create_async_engine(
"postgresql+asyncpg:///",
# echo=True,
)
ingest = IngestNvd()
asyncio.run(ingest(engine))
1 change: 0 additions & 1 deletion src/glvd/web/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ def __init__(self, app: Quart) -> None:
# TODO: Use config
self.engine = create_async_engine(
"postgresql+asyncpg:///",
echo=True,
pool_size=50,
max_overflow=0,
)
Expand Down

0 comments on commit 8ebd1da

Please sign in to comment.