Skip to content

Commit d7c844a

Browse files
authored
Added more verbose logging for command errors (#29)
1 parent 397050c commit d7c844a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

JHDBot/bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ async def on_command_error(ctx, error):
147147
if isinstance(error, commands.CommandNotFound):
148148
await ctx.send('Invalid command. Please use `$help` to know list current valid commands.')
149149
else:
150-
logger.warning("Invalid command detected resulting in error")
150+
logger.info(f"Error parsing bot command in channel: <#{ctx.message.channel.id}>\n```\nAuthor: {ctx.message.author}\nMessage: {ctx.message.content}\n```")
151151
await ctx.send(
152152
f'An error occurred. Please use `{bot.command_prefix}reportbot <Error>`')
153153

0 commit comments

Comments
 (0)