use Display format for logging serenity errors
This commit is contained in:
@@ -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
@@ -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
|
||||||
),
|
),
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user