use Display format for logging serenity errors

This commit is contained in:
2022-07-17 21:06:01 +02:00
parent 678fd36868
commit 797db1ffaa
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ async fn main() {
}); });
if let Err(err) = client.start().await { if let Err(err) = client.start().await {
error!("An error occurred while running the client: {:?}", err); error!("An error occurred while running the client: {}", err);
process::exit(2); process::exit(2);
} }
} }
+1 -1
View File
@@ -78,7 +78,7 @@ impl EventHandler for Handler {
contest.counts.len() contest.counts.len()
), ),
Err(err) => error!( Err(err) => error!(
"Error while running contest in channel {}: {:?}", "Error while running contest in channel {}: {}",
msg.channel_id.0, err msg.channel_id.0, err
), ),
}; };