From 1bd47314bee1e6812f066e026bd0a069f382d06b Mon Sep 17 00:00:00 2001 From: Colin Diener Date: Thu, 19 Aug 2021 11:05:56 -0700 Subject: [PATCH] Remove dbg! macro in favour of log::error! macro --- examples/inline_bot/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/inline_bot/src/main.rs b/examples/inline_bot/src/main.rs index 0a6b1d49..cd542eff 100644 --- a/examples/inline_bot/src/main.rs +++ b/examples/inline_bot/src/main.rs @@ -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. let response = query.requester.answer_inline_query(&query.update.id, results).send().await; - if response.is_err() { - dbg!(response); + if let Err(err) = response { + log::error!("Error in handler: {:?}", err); } }) })