Skip to content

Commit

Permalink
fix: WARN and skip unrecognized task result, allow `{success,testfa…
Browse files Browse the repository at this point in the history
…iled}`
  • Loading branch information
ErichDonGubler committed Jun 11, 2024
1 parent ec47d01 commit ba52d7e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,14 @@ async fn get_artifacts_for_revision(client: &Client, options: &Options, revision
}

let skip_log_level = match &*job.result {
"success" | "testfailed" => {
// We might have still hit a timeout, but we expect to still have some
// artifacts available.
None
}
"retry" | "usercancel" => Some(log::Level::Debug),
"exception" => Some(log::Level::Warn),
_ => None,
_ => Some(log::Level::Warn),
};
if let Some(level) = skip_log_level {
if log::log_enabled!(level) {
Expand Down

0 comments on commit ba52d7e

Please sign in to comment.