async+fmt-fix
All checks were successful
Deploy on push / deploy (push) Successful in 1m12s

This commit is contained in:
2024-10-14 12:19:30 +03:00
parent 4e7fb953ba
commit 3188a67661
5 changed files with 73 additions and 51 deletions

View File

@@ -1,8 +1,9 @@
import logging
import sentry_sdk
from sentry_sdk.integrations.ariadne import AriadneIntegration
from sentry_sdk.integrations.sqlalchemy import SqlalchemyIntegration
from sentry_sdk.integrations.starlette import StarletteIntegration
import logging
from settings import GLITCHTIP_DSN
@@ -12,6 +13,7 @@ sentry_logging_handler = sentry_sdk.integrations.logging.SentryHandler(level=log
logger.addHandler(sentry_logging_handler)
logger.setLevel(logging.DEBUG) # Более подробное логирование
def start_sentry():
try:
logger.info("[services.sentry] Sentry init started...")
@@ -26,5 +28,3 @@ def start_sentry():
logger.info("[services.sentry] Sentry initialized successfully.")
except Exception as e:
logger.warning("[services.sentry] Failed to initialize Sentry", exc_info=True)