log: remove logging of unhandled messages
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
andreas 2022-09-15 21:34:52 +02:00
parent 03a46667d2
commit 49026a2d17
Signed by: andreas
GPG Key ID: D97194E55873280A

View File

@ -234,8 +234,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
Dispatcher::builder(bot, handler) Dispatcher::builder(bot, handler)
.dependencies(dptree::deps![db_pool]) .dependencies(dptree::deps![db_pool])
.default_handler(|upd| async move { .default_handler(|_upd| async move {
println!("unhandled update: {:?}", upd);
}) })
.error_handler(LoggingErrorHandler::with_custom_text("error during dispatch")) .error_handler(LoggingErrorHandler::with_custom_text("error during dispatch"))
.enable_ctrlc_handler() .enable_ctrlc_handler()