diff options
author | 2021-12-30 23:41:58 +0000 | |
---|---|---|
committer | 2021-12-30 23:41:58 +0000 | |
commit | 17bcd45c68f144f3b88fdfdf05bd0db654c0322e (patch) | |
tree | ad07a6a449a322165d7246699908256c2df7a047 /bot/__main__.py | |
parent | Migrate to `og_blurple` (diff) | |
parent | Merge pull request #994 from python-discord/logging-in-AoC-completer-task (diff) |
Merge remote-tracking branch 'origin/main' into main
# Conflicts:
# bot/exts/holidays/halloween/candy_collection.py
Diffstat (limited to 'bot/__main__.py')
-rw-r--r-- | bot/__main__.py | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/bot/__main__.py b/bot/__main__.py index c6e5fa57..6889fe2b 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -1,28 +1,10 @@ import logging -import sentry_sdk -from sentry_sdk.integrations.logging import LoggingIntegration -from sentry_sdk.integrations.redis import RedisIntegration - from bot.bot import bot -from bot.constants import Client, GIT_SHA, STAFF_ROLES, WHITELISTED_CHANNELS +from bot.constants import Client, STAFF_ROLES, WHITELISTED_CHANNELS from bot.utils.decorators import whitelist_check from bot.utils.extensions import walk_extensions -sentry_logging = LoggingIntegration( - level=logging.DEBUG, - event_level=logging.WARNING -) - -sentry_sdk.init( - dsn=Client.sentry_dsn, - integrations=[ - sentry_logging, - RedisIntegration() - ], - release=f"sir-lancebot@{GIT_SHA}" -) - log = logging.getLogger(__name__) bot.add_check(whitelist_check(channels=WHITELISTED_CHANNELS, roles=STAFF_ROLES)) |