From a24979155fdc04f39c79ecf98f8db170c56d5776 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Mon, 4 Oct 2021 17:21:08 -0400 Subject: [PATCH] Island: Improve logging in PasswordBasedBytesEncryptor --- .../encryption/encryptors/password_based_bytes_encryptor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/monkey_island/cc/server_utils/encryption/encryptors/password_based_bytes_encryptor.py b/monkey/monkey_island/cc/server_utils/encryption/encryptors/password_based_bytes_encryptor.py index ca46f5646..b50e77e87 100644 --- a/monkey/monkey_island/cc/server_utils/encryption/encryptors/password_based_bytes_encryptor.py +++ b/monkey/monkey_island/cc/server_utils/encryption/encryptors/password_based_bytes_encryptor.py @@ -47,10 +47,10 @@ class PasswordBasedBytesEncryptor(IEncryptor): ) except ValueError as ex: if str(ex).startswith("Wrong password"): - logger.info("Wrong password provided for decryption.") + logger.error("Wrong password provided for decryption.") raise InvalidCredentialsError else: - logger.info("The corrupt ciphertext provided.") + logger.error("The provided ciphertext was corrupt.") raise InvalidCiphertextError return plaintext_stream.getvalue()