mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Get rid of log4j warnings
This commit is contained in:
parent
f3d9d0f53c
commit
a989b4e7d2
5
lib/plugins/aws/invokeLocal/.gitignore
vendored
5
lib/plugins/aws/invokeLocal/.gitignore
vendored
@ -1,2 +1,5 @@
|
||||
*.pyc
|
||||
java/target
|
||||
java/target
|
||||
java/.project
|
||||
java/.settings
|
||||
java/.classpath
|
||||
|
||||
@ -3,6 +3,7 @@ package com.serverless;
|
||||
import java.util.Collections;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.log4j.BasicConfigurator;
|
||||
import org.apache.log4j.Logger;
|
||||
|
||||
import com.amazonaws.services.lambda.runtime.Context;
|
||||
@ -14,6 +15,8 @@ public class Handler implements RequestHandler<Map<String, Object>, ApiGatewayRe
|
||||
|
||||
@Override
|
||||
public ApiGatewayResponse handleRequest(Map<String, Object> input, Context context) {
|
||||
BasicConfigurator.configure();
|
||||
|
||||
LOG.info("received: " + input);
|
||||
Response responseBody = new Response("Go Serverless v1.x! Your function executed successfully!", input);
|
||||
return ApiGatewayResponse.builder()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user