Skip to content

Commit

Permalink
resctl-bench: upload: Improve debugging when submission failed
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
obbardc committed Jul 25, 2024
1 parent c7a3774 commit ab0edf3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resctl-bench/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ab0edf3

Please sign in to comment.