aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-12-19 19:19:05 +0200
committerGravatar ks129 <[email protected]>2020-12-19 19:19:05 +0200
commitfe3ecaefc1b7491916bc87a6e608f143afbed2f3 (patch)
tree93171d82196984aa7d2183d43310bc8facb2cbfc
parentAdd Git SHA as constant (diff)
Add release tag to Sentry SDK initialization
-rw-r--r--bot/__main__.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bot/__main__.py b/bot/__main__.py
index df0e30eb..ee7710e7 100644
--- a/bot/__main__.py
+++ b/bot/__main__.py
@@ -1,12 +1,12 @@
import logging
import sentry_sdk
+from sentry_sdk.integrations.aiohttp import AioHttpIntegration
from sentry_sdk.integrations.logging import LoggingIntegration
from sentry_sdk.integrations.redis import RedisIntegration
-from sentry_sdk.integrations.aiohttp import AioHttpIntegration
from bot.bot import bot
-from bot.constants import Client, STAFF_ROLES, WHITELISTED_CHANNELS
+from bot.constants import Client, GIT_SHA, STAFF_ROLES, WHITELISTED_CHANNELS
from bot.utils.decorators import in_channel_check
from bot.utils.extensions import walk_extensions
@@ -22,7 +22,8 @@ sentry_sdk.init(
sentry_logging,
RedisIntegration(),
AioHttpIntegration()
- ]
+ ],
+ release=f"pydis-sir-lancebot@{GIT_SHA}"
)
log = logging.getLogger(__name__)