aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/__init__.py1
-rw-r--r--bot/__main__.py3
2 files changed, 3 insertions, 1 deletions
diff --git a/bot/__init__.py b/bot/__init__.py
index d2fd107a0..8f880b8e6 100644
--- a/bot/__init__.py
+++ b/bot/__init__.py
@@ -12,7 +12,6 @@ if TYPE_CHECKING:
from bot.bot import Bot
log.setup()
-log.setup_sentry()
# On Windows, the selector event loop is required for aiodns.
if os.name == "nt":
diff --git a/bot/__main__.py b/bot/__main__.py
index 9847c1849..257216fa7 100644
--- a/bot/__main__.py
+++ b/bot/__main__.py
@@ -1,6 +1,9 @@
import bot
from bot import constants
from bot.bot import Bot
+from bot.log import setup_sentry
+
+setup_sentry()
bot.instance = Bot.create()
bot.instance.load_extensions()