sentry: Drop unused integrations argument.

This commit is contained in:
Alex Vandiver 2021-07-15 11:32:19 -07:00 committed by Alex Vandiver
parent a21a280054
commit 3e57d66632
1 changed files with 1 additions and 3 deletions

View File

@ -2,7 +2,6 @@ from typing import TYPE_CHECKING, Optional
import sentry_sdk
from django.utils.translation import override as override_language
from sentry_sdk.integrations import Integration
from sentry_sdk.integrations.django import DjangoIntegration
from sentry_sdk.integrations.logging import ignore_logger
from sentry_sdk.integrations.redis import RedisIntegration
@ -59,7 +58,7 @@ def add_context(event: "Event", hint: "Hint") -> Optional["Event"]:
return event
def setup_sentry(dsn: Optional[str], *integrations: Integration) -> None:
def setup_sentry(dsn: Optional[str]) -> None:
if not dsn:
return
if PRODUCTION:
@ -77,7 +76,6 @@ def setup_sentry(dsn: Optional[str], *integrations: Integration) -> None:
DjangoIntegration(),
RedisIntegration(),
SqlalchemyIntegration(),
*integrations,
],
before_send=add_context,
# Because we strip the email/username from the Sentry data