aboutsummaryrefslogtreecommitdiffstats
path: root/bot/log.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/log.py')
-rw-r--r--bot/log.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/log.py b/bot/log.py
index b4431bc3..9ebc89a7 100644
--- a/bot/log.py
+++ b/bot/log.py
@@ -10,7 +10,7 @@ from pydis_core.utils import logging as core_logging
from sentry_sdk.integrations.logging import LoggingIntegration
from sentry_sdk.integrations.redis import RedisIntegration
-from bot.constants import Logging
+from bot.constants import Client, GIT_SHA, Logging
def setup() -> None:
@@ -59,12 +59,12 @@ def setup_sentry() -> None:
)
sentry_sdk.init(
- dsn=os.environ.get("BOT_SENTRY_DSN"),
+ dsn=Client.sentry_dsn,
integrations=[
sentry_logging,
RedisIntegration(),
],
- release=f"bot@{os.environ.get('GIT_SHA')}",
+ release=f"bot@{GIT_SHA}",
traces_sample_rate=0.5,
_experiments={
"profiles_sample_rate": 0.5,