forked from p15670423/monkey
Added the logging for errors encountered in configuration decryption workflow
This commit is contained in:
parent
fbe9b4f4d7
commit
8a673cc76c
|
@ -75,6 +75,9 @@ class ConfigurationImport(flask_restful.Resource):
|
||||||
config = decrypt_ciphertext(config, request_contents["password"])
|
config = decrypt_ciphertext(config, request_contents["password"])
|
||||||
return json.loads(config)
|
return json.loads(config)
|
||||||
except (JSONDecodeError, InvalidCiphertextError):
|
except (JSONDecodeError, InvalidCiphertextError):
|
||||||
|
logger.exception(
|
||||||
|
"Exception encountered when trying " "to extract plaintext configuraiton."
|
||||||
|
)
|
||||||
raise InvalidConfigurationError
|
raise InvalidConfigurationError
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Reference in New Issue