mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Add logs
This commit is contained in:
@@ -18,7 +18,10 @@ pub enum RegisterStatus {
|
||||
async fn get_bot_username(token: &str) -> Option<String> {
|
||||
match Bot::new(token).get_me().send().await {
|
||||
Ok(v) => v.username.clone(),
|
||||
Err(_) => None
|
||||
Err(err) => {
|
||||
log::error!("Bot reg (getting username) error: {:?}", err);
|
||||
None
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user