Skip to content

Commit 712b8d8

Browse files
committed
remove logging of aws credentials
1 parent 56edec9 commit 712b8d8

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

aws-serverless-java-container-springboot3/src/main/java/com/amazonaws/serverless/proxy/spring/AwsSpringWebCustomRuntimeEventLoop.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,6 @@ private void eventLoop(ServletWebServerApplicationContext context) {
9797

9898
Environment environment = context.getEnvironment();
9999
logger.info("Starting AWSWebRuntimeEventLoop");
100-
if (logger.isDebugEnabled()) {
101-
logger.debug("AWS LAMBDA ENVIRONMENT: " + System.getenv());
102-
}
103100

104101
String runtimeApi = environment.getProperty("AWS_LAMBDA_RUNTIME_API");
105102
String eventUri = MessageFormat.format(LAMBDA_RUNTIME_URL_TEMPLATE, runtimeApi, LAMBDA_VERSION_DATE);

aws-serverless-java-container-springboot3/src/main/java/com/amazonaws/serverless/proxy/spring/AwsSpringWebRuntimeInitializer.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,7 @@ public class AwsSpringWebRuntimeInitializer implements ApplicationContextInitial
3838

3939
@Override
4040
public void initialize(GenericApplicationContext context) {
41-
logger.info("AWS Environment: " + System.getenv());
4241
Environment environment = context.getEnvironment();
43-
if (logger.isDebugEnabled()) {
44-
logger.debug("AWS Environment: " + System.getenv());
45-
}
4642

4743
if (context instanceof ServletWebServerApplicationContext && isCustomRuntime(environment)) {
4844
if (context.getBeanFactory().getBeanNamesForType(AwsSpringWebCustomRuntimeEventLoop.class, false, false).length == 0) {

0 commit comments

Comments
 (0)