Get rid of log4j warnings

This commit is contained in:
Rafal Wilinski 2017-09-12 14:48:26 +02:00
parent f3d9d0f53c
commit a989b4e7d2
2 changed files with 7 additions and 1 deletions

View File

@ -1,2 +1,5 @@
*.pyc
java/target
java/target
java/.project
java/.settings
java/.classpath

View File

@ -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()