Skip to content

Commit

Permalink
fix: remove debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
MrExplode committed Oct 24, 2023
1 parent 8430369 commit 94510ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions src/jira.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,7 @@ async fn handle(info: web::Query<Info>, body: web::Json<JiraData>, 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()
}
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down

0 comments on commit 94510ed

Please sign in to comment.