mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 07:25:36 +01:00
Add debug for user settings request
This commit is contained in:
@@ -3,6 +3,7 @@ use serde_json::json;
|
||||
use smallvec::{smallvec, SmallVec};
|
||||
use smartstring::alias::String as SmartString;
|
||||
use teloxide::types::{ChatId, UserId};
|
||||
use tracing::log;
|
||||
|
||||
use crate::{bots_manager::USER_LANGS_CACHE, config};
|
||||
|
||||
@@ -54,7 +55,10 @@ pub async fn get_user_or_default_lang_codes(user_id: UserId) -> SmallVec<[SmartS
|
||||
USER_LANGS_CACHE.insert(user_id, langs.clone()).await;
|
||||
langs
|
||||
}
|
||||
Err(_) => default_lang_codes,
|
||||
Err(err) => {
|
||||
log::error!("{:?}", err);
|
||||
default_lang_codes
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user