Skip to content

Commit

Permalink
chore: Silence Pydantic UserWarning (#846)
Browse files Browse the repository at this point in the history
Silence pydantic warning
  • Loading branch information
tianjing-li authored Nov 19, 2024
1 parent ad8363c commit 68c85c5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/backend/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging
import warnings

from alembic.command import upgrade
from alembic.config import Config
Expand Down Expand Up @@ -33,6 +34,8 @@

# Only show errors for Pydantic
logging.getLogger('pydantic').setLevel(logging.ERROR)
# Supress UserWarnings clogging logs
warnings.filterwarnings("ignore", category=UserWarning, module="pydantic")

load_dotenv()

Expand Down

0 comments on commit 68c85c5

Please sign in to comment.