diff --git a/monkey/monkey_island/cc/resources/configuration_import.py b/monkey/monkey_island/cc/resources/configuration_import.py index bcb3d8b1f..464006d08 100644 --- a/monkey/monkey_island/cc/resources/configuration_import.py +++ b/monkey/monkey_island/cc/resources/configuration_import.py @@ -75,6 +75,9 @@ class ConfigurationImport(flask_restful.Resource): config = decrypt_ciphertext(config, request_contents["password"]) return json.loads(config) except (JSONDecodeError, InvalidCiphertextError): + logger.exception( + "Exception encountered when trying " "to extract plaintext configuraiton." + ) raise InvalidConfigurationError @staticmethod