aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joseph Banks <[email protected]>2020-02-21 17:51:09 +0000
committerGravatar Joseph Banks <[email protected]>2020-02-21 17:51:09 +0000
commit24ddab52ac1db77f4dd061d22ab4d622e60da237 (patch)
tree4b528225709225d51920d7aff9a9973318a860ca
parentRemove AIOHTTP integration from Sentry since it is intended for AIOHTTP servers. (diff)
Use log.error instead of capture_exception
-rw-r--r--bot/cogs/error_handler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/error_handler.py b/bot/cogs/error_handler.py
index e76f1a086..8261633ee 100644
--- a/bot/cogs/error_handler.py
+++ b/bot/cogs/error_handler.py
@@ -15,7 +15,7 @@ from discord.ext.commands import (
UserInputError,
)
from discord.ext.commands import Cog, Context
-from sentry_sdk import capture_exception, configure_scope
+from sentry_sdk import configure_scope
from bot.api import ResponseCodeError
from bot.bot import Bot
@@ -159,7 +159,7 @@ class ErrorHandler(Cog):
scope.set_tag("message_id", ctx.message.id)
scope.set_extra("full_message", ctx.message.content)
- capture_exception(e)
+ log.error(f"Error executing command invoked by {ctx.message.author}: {ctx.message.content}", exc_info=e)
def setup(bot: Bot) -> None: