From ba52d7e2839904fbfaccf4b1a96cfcd1ed666ac9 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Tue, 11 Jun 2024 14:56:25 -0400 Subject: [PATCH] fix: `WARN` and skip unrecognized task result, allow `{success,testfailed}` --- src/main.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 330a74b..354ddc1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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) {