From 4389f341db275673e5fd3d11e846a0626910752e Mon Sep 17 00:00:00 2001 From: Priyanshu Verma Date: Mon, 8 Apr 2024 13:38:13 +0530 Subject: [PATCH] [chore] log error messages at the error level --- bot/src/callbacks.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bot/src/callbacks.rs b/bot/src/callbacks.rs index 5d08e8b..7664e36 100644 --- a/bot/src/callbacks.rs +++ b/bot/src/callbacks.rs @@ -75,7 +75,7 @@ pub async fn on_error(error: poise::FrameworkError<'_, crate::Data, BotError>) { match error { FrameworkError::Command { error, ctx } => error.handle(ctx).await, FrameworkError::CommandPanic { payload, ctx } => { - debug!( + error!( "Command Panic: {}", payload.unwrap_or("Payload missing".to_string()) ); @@ -95,14 +95,14 @@ pub async fn on_error(error: poise::FrameworkError<'_, crate::Data, BotError>) { trigger: _, } => { msg.reply(ctx, "Unkown command").await.ok(); - debug!("Unkown command: {}", msg_content); + error!("Unkown command: {}", msg_content); } FrameworkError::UnknownInteraction { ctx: _, framework: _, interaction, } => { - debug!("Unkown interaction: {:?}", interaction); + error!("Unkown interaction: {:?}", interaction); } _ => (), }