From 45961f3ff274cea7b97ed1a7582d418e175bb5a4 Mon Sep 17 00:00:00 2001 From: Jonathan Lenart Date: Sat, 28 Feb 2026 21:51:52 -0500 Subject: [PATCH] chore: move noisy log lines from INFO to DEBUG These lines are beneficial for developers work on the library itself, but not for applications which use this library. At scale, they can be quite noisy. --- src/aws_encryption_sdk/key_providers/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aws_encryption_sdk/key_providers/base.py b/src/aws_encryption_sdk/key_providers/base.py index 5fa99cc1c..7d7ff8cc5 100644 --- a/src/aws_encryption_sdk/key_providers/base.py +++ b/src/aws_encryption_sdk/key_providers/base.py @@ -482,7 +482,7 @@ def encrypt_data_key(self, data_key, algorithm, encryption_context): :rtype: aws_encryption_sdk.structures.EncryptedDataKey :raises IncorrectMasterKeyError: if Data Key's key provider does not match this Master Key """ - _LOGGER.info("encrypting data key with encryption context: %s", encryption_context) + _LOGGER.debug("encrypting data key with encryption context: %s", encryption_context) return self._encrypt_data_key(data_key=data_key, algorithm=algorithm, encryption_context=encryption_context) @abc.abstractmethod @@ -515,7 +515,7 @@ def decrypt_data_key(self, encrypted_data_key, algorithm, encryption_context): :rtype: aws_encryption_sdk.structures.DataKey :raises IncorrectMasterKeyError: if Data Key's key provider does not match this Master Key """ - _LOGGER.info("decrypting data key with encryption context: %s", encryption_context) + _LOGGER.debug("decrypting data key with encryption context: %s", encryption_context) self._key_check(encrypted_data_key) decrypted_data_key = self._decrypt_data_key( encrypted_data_key=encrypted_data_key, algorithm=algorithm, encryption_context=encryption_context