Island: change the log message level of wrong password in password_based_bytes_encryptor.py to debug

Wrong password is in some cases expected behavior, not an error of an application
This commit is contained in:
VakarisZ 2021-10-26 15:47:33 +03:00
parent 8e6a2d8e7d
commit aa6f202a8f
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class PasswordBasedBytesEncryptor(IEncryptor):
)
except ValueError as ex:
if str(ex).startswith("Wrong password"):
logger.error("Wrong password provided for decryption.")
logger.debug("Wrong password provided for decryption.")
raise InvalidCredentialsError
else:
logger.error("The provided ciphertext was corrupt.")