Skip to content

Commit

Permalink
Import logging, fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
naglepuff committed Oct 17, 2024
1 parent 44c5486 commit 9920a9f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nmdc_server/app.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import logging
import typing
from contextlib import asynccontextmanager

Expand All @@ -23,8 +24,8 @@ def attach_sentry(app: FastAPI):
sentry_sdk.init(
dsn=settings.sentry_dsn,
integrations=[
LoggingIntegration(level=logging.INFO, event_level=logging.WARNING),
SqlalchemyIntegration(),
LoggingIntegration(level=logging.INFO, event_level=logging.WARNING),
SqlalchemyIntegration(),
],
in_app_include=["nmdc_server"],
attach_stacktrace=True,
Expand Down

0 comments on commit 9920a9f

Please sign in to comment.