Skip to content
Snippets Groups Projects
Unverified Commit 55a66a21 authored by John DiSanti's avatar John DiSanti Committed by GitHub
Browse files

Fix canary Lambda invoke success check (#1960)

parent 2445ddc5
Branches
Tags
No related merge requests found
...@@ -375,13 +375,13 @@ async fn invoke_lambda(lambda_client: lambda::Client, bundle_name: &str) -> Resu ...@@ -375,13 +375,13 @@ async fn invoke_lambda(lambda_client: lambda::Client, bundle_name: &str) -> Resu
.await .await
.context(here!("failed to invoke the canary Lambda"))?; .context(here!("failed to invoke the canary Lambda"))?;
if let Some(log_result) = response.log_result { if let Some(log_result) = response.log_result() {
info!( info!(
"Last 4 KB of canary logs:\n----\n{}\n----\n", "Last 4 KB of canary logs:\n----\n{}\n----\n",
std::str::from_utf8(&base64::decode(&log_result)?)? std::str::from_utf8(&base64::decode(log_result)?)?
); );
} }
if response.status_code != 200 { if response.status_code() != 200 || response.function_error().is_some() {
bail!( bail!(
"Canary failed: {}", "Canary failed: {}",
response response
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment