aboutsummaryrefslogtreecommitdiffstats
path: root/bot/__init__.py
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2023-11-25 22:01:47 +0000
committerGravatar Chris Lovering <[email protected]>2023-11-25 22:04:09 +0000
commit27a12e1994e80502a2608f35431d2a9df82a8b5a (patch)
tree7996d90252b15a45b9c82797a55d52f4896630a0 /bot/__init__.py
parentBump deps to latest (diff)
Use new logging util from bot-core
Diffstat (limited to 'bot/__init__.py')
-rw-r--r--bot/__init__.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/bot/__init__.py b/bot/__init__.py
index 9ae64c2e..67165073 100644
--- a/bot/__init__.py
+++ b/bot/__init__.py
@@ -6,35 +6,17 @@ except ModuleNotFoundError:
pass
import asyncio
-import logging
import os
from typing import TYPE_CHECKING
import arrow
-import sentry_sdk
from pydis_core.utils import apply_monkey_patches
-from sentry_sdk.integrations.logging import LoggingIntegration
-from sentry_sdk.integrations.redis import RedisIntegration
from bot import log
if TYPE_CHECKING:
from bot.bot import Bot
-sentry_logging = LoggingIntegration(
- level=logging.DEBUG,
- event_level=logging.WARNING
-)
-
-sentry_sdk.init(
- dsn=os.environ.get("BOT_SENTRY_DSN"),
- integrations=[
- sentry_logging,
- RedisIntegration()
- ],
- release=f"sir-lancebot@{os.environ.get('GIT_SHA', 'foobar')}"
-)
-
log.setup()
# Set timestamp of when execution started (approximately)