Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

Commit

Permalink
log handle_error as info
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-paulo-parity committed Oct 8, 2021
1 parent 2a92e77 commit 8e9ea6e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/webhook.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1636,6 +1636,7 @@ Approval by \"Project Owners\" is only attempted if other means defined in the [
}

async fn handle_error(e: Error, state: &AppState) {
log::info!("handle_error: {}", e);
match e {
Error::MergeFailureWillBeSolvedLater { .. } => (),
e => match e {
Expand All @@ -1646,7 +1647,6 @@ async fn handle_error(e: Error, state: &AppState) {
} => match *source {
Error::MergeFailureWillBeSolvedLater { .. } => (),
e => {
log::error!("handle_error: {}", e);
let msg = handle_error_inner(e, state)
.await
.unwrap_or_else(|| {
Expand All @@ -1665,7 +1665,6 @@ async fn handle_error(e: Error, state: &AppState) {
}
},
_ => {
log::error!("handle_error: {}", e);
handle_error_inner(e, state).await;
}
},
Expand Down

0 comments on commit 8e9ea6e

Please sign in to comment.