Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrii committed May 29, 2024
1 parent 1374df2 commit a3af382
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions lms/envs/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -1089,26 +1089,3 @@ def get_env_setting(setting):
ANONYMOUS_SURVEY_REPORT = False

AVAILABLE_DISCUSSION_TOURS = ENV_TOKENS.get('AVAILABLE_DISCUSSION_TOURS', [])

#RACCOONGANG

if AUTH_TOKENS.get('RG_SENTRY_DSN', None):
import sentry_sdk
import subprocess
from sentry_sdk.integrations.django import DjangoIntegration
from sentry_sdk.integrations.celery import CeleryIntegration

try:
platform_git_commit = subprocess.check_output(['git', 'describe', '--always']).strip()
except (subprocess.CalledProcessError, OSError):
platform_git_commit = ''
sentry_sdk.init(
AUTH_TOKENS.get('RG_SENTRY_DSN'),
auto_enabling_integrations=False,
integrations=[DjangoIntegration(), CeleryIntegration()],
environment=ENV_TOKENS.get('RG_SENTRY_ENVIRONMENT', ''),
release=platform_git_commit,
send_default_pii=True
)

#RACCOONGANG

0 comments on commit a3af382

Please sign in to comment.