Skip to content

Commit

Permalink
[chore] log error messages at the error level
Browse files Browse the repository at this point in the history
  • Loading branch information
Blonteractor committed Apr 8, 2024
1 parent 39d38ca commit 4389f34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bot/src/callbacks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
);
Expand All @@ -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);
}
_ => (),
}
Expand Down

0 comments on commit 4389f34

Please sign in to comment.