Skip to content

Commit

Permalink
small logging fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
codekansas committed Jun 18, 2024
1 parent 7452fba commit d597710
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions store/app/main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Defines the main entrypoint for the FastAPI app."""

import logging
from contextlib import asynccontextmanager
from typing import AsyncGenerator

Expand All @@ -23,6 +24,7 @@
@asynccontextmanager
async def lifespan(app: FastAPI) -> AsyncGenerator[None, None]:
"""Initializes the app and creates the database tables."""
logging.getLogger("aiobotocore").setLevel(logging.CRITICAL)
await create_tables()
try:
yield
Expand Down

0 comments on commit d597710

Please sign in to comment.