From af8e75ec18ff2550a2f41719463086b430a981be Mon Sep 17 00:00:00 2001 From: imrantariqnbs Date: Tue, 8 Aug 2017 15:52:18 +0500 Subject: [PATCH] Lambda S3 Logs Correction. It was printing bucket name instead of object name --- .../code-template/lambda/s3-get-object/handler.java.ftl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/com.amazonaws.eclipse.lambda/code-template/lambda/s3-get-object/handler.java.ftl b/bundles/com.amazonaws.eclipse.lambda/code-template/lambda/s3-get-object/handler.java.ftl index 8cfff3cf..538d91aa 100644 --- a/bundles/com.amazonaws.eclipse.lambda/code-template/lambda/s3-get-object/handler.java.ftl +++ b/bundles/com.amazonaws.eclipse.lambda/code-template/lambda/s3-get-object/handler.java.ftl @@ -37,7 +37,7 @@ public class ${handlerClassName} implements RequestHandler { e.printStackTrace(); context.getLogger().log(String.format( "Error getting object %s from bucket %s. Make sure they exist and" - + " your bucket is in the same region as this function.", bucket, key)); + + " your bucket is in the same region as this function.", key, bucket)); throw e; } }