1
Fork 0
mirror of https://github.com/Steffo99/patched-porobot.git synced 2024-12-22 17:44:22 +00:00

Hide the entered inline query from logs

For privacy reasons.
This commit is contained in:
Steffo 2022-08-22 18:26:40 +02:00
parent 5cdc617ee7
commit 26257ff2a3
Signed by: steffo
GPG key ID: 6965406171929D01

View file

@ -16,7 +16,7 @@ pub fn inline_query_handler(
engine: CardSearchEngine,
) -> Handler<'static, DependencyMap, ResponseResult<()>, DpHandlerDescription> {
Update::filter_inline_query().chain(dptree::endpoint(move |query: InlineQuery, bot: Bot| {
info!("Handling inline query: `{}`", &query.query);
info!("Handling inline query...");
// It's not a real loop, it's just to make the code flow more tolerable.
let payload: AnswerInlineQuery = loop {
@ -77,7 +77,6 @@ pub fn inline_query_handler(
};
}
debug!("Found {} cards.", &len);
break AnswerInlineQuery {
inline_query_id: query.id.clone(),
results: results