This is an automated email from the ASF dual-hosted git repository. kaxilnaik pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/master by this push: new eda538f AWS: Do not log info when SSM & SecretsManager secret not found (#15120) eda538f is described below commit eda538f56cb2dc2728d303acddb42841fe419c36 Author: Daniel Standish <15932138+dstand...@users.noreply.github.com> AuthorDate: Fri Apr 2 15:01:16 2021 -0700 AWS: Do not log info when SSM & SecretsManager secret not found (#15120) --- airflow/providers/amazon/aws/secrets/secrets_manager.py | 7 +------ airflow/providers/amazon/aws/secrets/systems_manager.py | 6 +----- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/airflow/providers/amazon/aws/secrets/secrets_manager.py b/airflow/providers/amazon/aws/secrets/secrets_manager.py index 072e9cf..64a691d 100644 --- a/airflow/providers/amazon/aws/secrets/secrets_manager.py +++ b/airflow/providers/amazon/aws/secrets/secrets_manager.py @@ -154,10 +154,5 @@ class SecretsManagerBackend(BaseSecretsBackend, LoggingMixin): ) return response.get('SecretString') except self.client.exceptions.ResourceNotFoundException: - self.log.debug( - "An error occurred (ResourceNotFoundException) when calling the " - "get_secret_value operation: " - "Secret %s not found.", - secrets_path, - ) + self.log.debug("Secret %s not found.", secrets_path) return None diff --git a/airflow/providers/amazon/aws/secrets/systems_manager.py b/airflow/providers/amazon/aws/secrets/systems_manager.py index e76342b..9482e8d 100644 --- a/airflow/providers/amazon/aws/secrets/systems_manager.py +++ b/airflow/providers/amazon/aws/secrets/systems_manager.py @@ -140,9 +140,5 @@ class SystemsManagerParameterStoreBackend(BaseSecretsBackend, LoggingMixin): value = response["Parameter"]["Value"] return value except self.client.exceptions.ParameterNotFound: - self.log.info( - "An error occurred (ParameterNotFound) when calling the GetParameter operation: " - "Parameter %s not found.", - ssm_path, - ) + self.log.debug("Parameter %s not found.", ssm_path) return None