From 6b4bd454d6ecce00410fad11035ece0846b5b589 Mon Sep 17 00:00:00 2001 From: Jim Hahn Date: Fri, 8 Jun 2018 10:30:22 -0400 Subject: Decryption messages should not be errors Modified code to generate INFO messages when decryption fails, instead of ERROR or WARN. Also modified some of the text in the afforementioned messages. Change-Id: I895967cf16b0e5667e1797bc16ea1ede81d6dd7a Issue-ID: POLICY-785 Signed-off-by: Jim Hahn --- .../src/main/java/org/onap/policy/utils/CryptoUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'PolicyEngineUtils/src') 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); -- cgit 1.2.3-korg