From 94510ed8a3481dff1c6e6052bf5d9d916ea7c6d2 Mon Sep 17 00:00:00 2001 From: MrExplode Date: Wed, 25 Oct 2023 00:38:58 +0200 Subject: [PATCH] fix: remove debug logging --- src/jira.rs | 10 +--------- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/jira.rs b/src/jira.rs index f303698..2a5fc03 100644 --- a/src/jira.rs +++ b/src/jira.rs @@ -35,15 +35,7 @@ async fn handle(info: web::Query, body: web::Json, clients: Data return HttpResponse::Unauthorized().finish(); } - let d = clients.jira_client.send_message(&message(&body)).await; - match d { - Ok(o) => { - println!("webhook delivery succesful: {}", o); - } - Err(e) => { - println!("geci: {}", e); - } - } + let _ = clients.jira_client.send_message(&message(&body)).await; HttpResponse::Accepted().finish() } diff --git a/src/main.rs b/src/main.rs index 8a9291e..43c35f5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,7 +19,7 @@ struct Clients { #[actix_web::main] async fn main() -> std::io::Result<()> { dotenv().ok(); - env::set_var("RUST_LOG", "debug"); + env::set_var("RUST_LOG", "info"); env_logger::init(); let jira_url = match env::var("JIRA_URL") {