From 8a673cc76c4ef405a681453301196d7f18c450a4 Mon Sep 17 00:00:00 2001 From: VakarisZ Date: Fri, 11 Jun 2021 16:25:47 +0300 Subject: [PATCH] Added the logging for errors encountered in configuration decryption workflow --- monkey/monkey_island/cc/resources/configuration_import.py | 3 +++ 1 file changed, 3 insertions(+) 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