Skip to content

Commit 3968e37

Browse files
committed
GH-1187 Add log for AWS Context
1 parent e795188 commit 3968e37

File tree

1 file changed

+3
-0
lines changed
  • spring-cloud-function-adapters/spring-cloud-function-adapter-aws/src/main/java/org/springframework/cloud/function/adapter/aws

1 file changed

+3
-0
lines changed

spring-cloud-function-adapters/spring-cloud-function-adapter-aws/src/main/java/org/springframework/cloud/function/adapter/aws/FunctionInvoker.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ public void handleRequest(InputStream input, OutputStream output, Context contex
8585
if (!this.started) {
8686
this.start();
8787
}
88+
if (context == null) {
89+
logger.warn("Lambda is invoked with null Context");
90+
}
8891
Message requestMessage = AWSLambdaUtils
8992
.generateMessage(input, this.function.getInputType(), this.function.isSupplier(), jsonMapper, context);
9093

0 commit comments

Comments
 (0)