1
Fork 0
mirror of https://github.com/wlinator/luminara.git synced 2024-10-02 22:23:13 +00:00

chore: Update error handling to use logger.warning instead of logger.exception

This commit is contained in:
wlinator 2024-08-02 05:46:09 -04:00
parent 54449e0af2
commit c2c0f7e49e

View file

@ -109,7 +109,7 @@ class ErrorListener(Cog):
log_msg += " in DMs" if ctx.guild is None else f" | guild: {ctx.guild.name} " log_msg += " in DMs" if ctx.guild is None else f" | guild: {ctx.guild.name} "
# if len(str(error)) > 80: # if len(str(error)) > 80:
# error = f"{str(error)[:80]}..." # error = f"{str(error)[:80]}..."
logger.exception(f"{log_msg} | FAILED: {error}") logger.warning(f"{log_msg} | FAILED: {error}")
@Cog.listener() @Cog.listener()
async def on_command_error(self, ctx, error) -> None: async def on_command_error(self, ctx, error) -> None: