Remove dbg! macro in favour of log::error! macro

This commit is contained in:
Colin Diener 2021-08-19 11:05:56 -07:00
parent 43f8e73973
commit 1bd47314be

View file

@ -58,8 +58,8 @@ async fn run() {
// Send it off! One thing to note -- the ID we use here must be of the query we're responding to. // Send it off! One thing to note -- the ID we use here must be of the query we're responding to.
let response = let response =
query.requester.answer_inline_query(&query.update.id, results).send().await; query.requester.answer_inline_query(&query.update.id, results).send().await;
if response.is_err() { if let Err(err) = response {
dbg!(response); log::error!("Error in handler: {:?}", err);
} }
}) })
}) })