aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Amrou Bellalouna <[email protected]>2024-03-26 22:13:31 +0100
committerGravatar GitHub <[email protected]>2024-03-26 22:13:31 +0100
commit0b224f230a97ed857f9293498ac27cbeaf2a6d44 (patch)
tree2dd7179db7d9ef932cf6a5115a88d4881c2897ca
parentRemove sentry sample rates and add asyncio integration (#2979) (diff)
parentMove sentry initialisation to after the event loop is created (diff)
Merge pull request #2981 from python-discord/init-sentry-after-event-loop-creation
Move sentry initialisation to after the event loop is created
-rw-r--r--bot/__main__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/__main__.py b/bot/__main__.py
index ddb6ed608..42b3c0c95 100644
--- a/bot/__main__.py
+++ b/bot/__main__.py
@@ -13,7 +13,6 @@ from bot import constants
from bot.bot import Bot
from bot.log import get_logger, setup_sentry
-setup_sentry()
LOCALHOST = "127.0.0.1"
@@ -36,6 +35,8 @@ async def _create_redis_session() -> RedisSession:
async def main() -> None:
"""Entry async method for starting the bot."""
+ setup_sentry()
+
statsd_url = constants.Stats.statsd_host
if constants.DEBUG_MODE:
# Since statsd is UDP, there are no errors for sending to a down port.