diff options
author | 2020-12-19 19:19:05 +0200 | |
---|---|---|
committer | 2020-12-19 19:19:05 +0200 | |
commit | fe3ecaefc1b7491916bc87a6e608f143afbed2f3 (patch) | |
tree | 93171d82196984aa7d2183d43310bc8facb2cbfc /bot/__main__.py | |
parent | Add Git SHA as constant (diff) |
Add release tag to Sentry SDK initialization
Diffstat (limited to 'bot/__main__.py')
-rw-r--r-- | bot/__main__.py | 7 |
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__) |