summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2018-06-08 19:00:59 +0000
committerGerrit Code Review <gerrit@onap.org>2018-06-08 19:00:59 +0000
commitc02881e7e7a0a01b5450caa04ef850438e6a299b (patch)
tree7f721f6b4261b08128cf9d4bcb9d871c20ff06d9
parent3f1057bf19f3e508ab6a01ad6acc60afac17ba3b (diff)
parent6b4bd454d6ecce00410fad11035ece0846b5b589 (diff)
Merge "Decryption messages should not be errors"
-rw-r--r--PolicyEngineUtils/src/main/java/org/onap/policy/utils/CryptoUtils.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/PolicyEngineUtils/src/main/java/org/onap/policy/utils/CryptoUtils.java b/PolicyEngineUtils/src/main/java/org/onap/policy/utils/CryptoUtils.java
index 74f6641ae..15a93bdab 100644
--- a/PolicyEngineUtils/src/main/java/org/onap/policy/utils/CryptoUtils.java
+++ b/PolicyEngineUtils/src/main/java/org/onap/policy/utils/CryptoUtils.java
@@ -139,13 +139,13 @@ public class CryptoUtils {
try {
if (encryptedTxt == null || encryptedTxt.isEmpty()) {
- LOGGER.error("decryptTxtNoEx: Input param encryptedTxt is not valid");
+ LOGGER.info("decryptTxtNoEx: Input param encryptedTxt is empty");
return new byte[0];
}
return decryptTxt(encryptedTxt);
} catch (Exception e) {
try {
- LOGGER.warn("decryptTxtNoEx: Exception while decryption : " + e);
+ LOGGER.info("decryptTxtNoEx: Exception while decrypting : " + e);
return (encryptedTxt != null) ? encryptedTxt.getBytes(StandardCharsets.UTF_8) : new byte[0];
} catch (Exception e1) {
LOGGER.warn("decryptTxtNoEx: Exception on sending default : " + e1);