diff --git a/src/lambda_invoker.rs b/src/lambda_invoker.rs index 63709ea..f09e3b4 100644 --- a/src/lambda_invoker.rs +++ b/src/lambda_invoker.rs @@ -58,7 +58,9 @@ impl LambdaInvoker { .payload(self.payload.clone()) .send() .await?; - info!("Function error: {:?}", result.function_error); + result + .function_error() + .map(|e| warn!("Function error: {:?}", e)); Ok(result.function_error.is_none()) }