Merge "Decryption messages should not be errors"
authorPamela Dragosh <pdragosh@research.att.com>
Fri, 8 Jun 2018 19:00:59 +0000 (19:00 +0000)
committerGerrit Code Review <gerrit@onap.org>
Fri, 8 Jun 2018 19:00:59 +0000 (19:00 +0000)
PolicyEngineUtils/src/main/java/org/onap/policy/utils/CryptoUtils.java

index 74f6641..15a93bd 100644 (file)
@@ -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);