From 8f4af292a7bf02017a1a9c329eb73e3557bc04a7 Mon Sep 17 00:00:00 2001 From: David Turner Date: Thu, 7 May 2020 17:00:18 +0100 Subject: [PATCH] Hide c.a.a.p.i.BasicProfileConfigFileLoader noise (#56346) A recent AWS SDK upgrade has introduced a new source of spurious `WARN` logs when the security manager prevents access to the user's home directory and therefore to their shared client configuration. This is actually the behaviour we want, and it's harmless and handled by the SDK as if the profile config doesn't exist, so this log message is unnecessary noise. This commit suppresses this noisy logging by default. Relates #20313 Closes #56333 --- plugins/discovery-ec2/config/discovery-ec2/log4j2.properties | 3 +++ plugins/repository-s3/config/repository-s3/log4j2.properties | 3 +++ 2 files changed, 6 insertions(+) diff --git a/plugins/discovery-ec2/config/discovery-ec2/log4j2.properties b/plugins/discovery-ec2/config/discovery-ec2/log4j2.properties index aa52f0232e0..3b4a8900a00 100644 --- a/plugins/discovery-ec2/config/discovery-ec2/log4j2.properties +++ b/plugins/discovery-ec2/config/discovery-ec2/log4j2.properties @@ -6,3 +6,6 @@ logger.com_amazonaws_jmx_SdkMBeanRegistrySupport.level = error logger.com_amazonaws_metrics_AwsSdkMetrics.name = com.amazonaws.metrics.AwsSdkMetrics logger.com_amazonaws_metrics_AwsSdkMetrics.level = error + +logger.com_amazonaws_auth_profile_internal_BasicProfileConfigFileLoader.name = com.amazonaws.auth.profile.internal.BasicProfileConfigFileLoader +logger.com_amazonaws_auth_profile_internal_BasicProfileConfigFileLoader.level = error diff --git a/plugins/repository-s3/config/repository-s3/log4j2.properties b/plugins/repository-s3/config/repository-s3/log4j2.properties index aa52f0232e0..3b4a8900a00 100644 --- a/plugins/repository-s3/config/repository-s3/log4j2.properties +++ b/plugins/repository-s3/config/repository-s3/log4j2.properties @@ -6,3 +6,6 @@ logger.com_amazonaws_jmx_SdkMBeanRegistrySupport.level = error logger.com_amazonaws_metrics_AwsSdkMetrics.name = com.amazonaws.metrics.AwsSdkMetrics logger.com_amazonaws_metrics_AwsSdkMetrics.level = error + +logger.com_amazonaws_auth_profile_internal_BasicProfileConfigFileLoader.name = com.amazonaws.auth.profile.internal.BasicProfileConfigFileLoader +logger.com_amazonaws_auth_profile_internal_BasicProfileConfigFileLoader.level = error