diff options
author | 2024-03-26 22:13:31 +0100 | |
---|---|---|
committer | 2024-03-26 22:13:31 +0100 | |
commit | 0b224f230a97ed857f9293498ac27cbeaf2a6d44 (patch) | |
tree | 2dd7179db7d9ef932cf6a5115a88d4881c2897ca | |
parent | Remove sentry sample rates and add asyncio integration (#2979) (diff) | |
parent | Move 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__.py | 3 |
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. |