From 5ba3b2f17097272b1a73b6edf919e5c93ee9cd41 Mon Sep 17 00:00:00 2001 From: Christopher Obbard Date: Thu, 25 Jul 2024 15:22:50 +0100 Subject: [PATCH] resctl-bench: upload: Improve debugging when submission failed Currently we don't print a lot when the submission fails. This commit changes the error name to be something a little more sensible as well as prints the whole HTTP response on an error for additional debugging context. Signed-off-by: Christopher Obbard --- resctl-bench/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resctl-bench/src/main.rs b/resctl-bench/src/main.rs index 2ff3a5d..3a573d2 100644 --- a/resctl-bench/src/main.rs +++ b/resctl-bench/src/main.rs @@ -286,7 +286,8 @@ impl Program { if let Some(error_message) = response.error_message { error!("Failed to submit benchmark: {}", error_message); } else { - error!("Submission failed for an unknown reason..."); + error!("Failed to submit benchmark: Unknown reason."); + error!("Lambda response: {:#?}", response); } std::process::exit(1); }