From 992a295ad062f6fff8a968bc4d9cdb965a643490 Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Tue, 22 Oct 2019 16:22:18 +0200 Subject: [PATCH] rm println --- src/slack/app.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/slack/app.rs b/src/slack/app.rs index a597b7d..4c85437 100644 --- a/src/slack/app.rs +++ b/src/slack/app.rs @@ -20,6 +20,7 @@ use failure::format_err; use futures::future; use futures::Future; use futures::IntoFuture; +use log::error; use oauth2::basic::BasicClient; use oauth2::prelude::*; use oauth2::AuthUrl; @@ -102,11 +103,11 @@ fn auth_identity( // Check state token from im_crsf_state if let Some(ref must_state) = session.get::("identity_csrf_state").unwrap() { if must_state != state.secret() { - println!("Error: Identity csrf state mismatch"); + error!("Error: Identity csrf state mismatch"); return Box::new(future::ok(send_error_response())); } } else { - println!("Error: Missing identity csrf state"); + error!("Error: Missing identity csrf state"); return Box::new(future::ok(send_error_response())); }