Change error to warning
Changed ERROR about decryption to WARNING.
Added POLICY_LOGS to base.conf (for non-docker).
Change-Id: If32965f1c37b36102c12371e739e1a155bb255f0
Issue-ID: POLICY-758
Signed-off-by: Jim Hahn <jrh3@att.com>
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 5496f0d..74f6641 100644
--- a/PolicyEngineUtils/src/main/java/org/onap/policy/utils/CryptoUtils.java
+++ b/PolicyEngineUtils/src/main/java/org/onap/policy/utils/CryptoUtils.java
@@ -145,10 +145,10 @@
return decryptTxt(encryptedTxt);
} catch (Exception e) {
try {
- LOGGER.error("decryptTxtNoEx: Exception while decryption : " + e);
+ LOGGER.warn("decryptTxtNoEx: Exception while decryption : " + e);
return (encryptedTxt != null) ? encryptedTxt.getBytes(StandardCharsets.UTF_8) : new byte[0];
} catch (Exception e1) {
- LOGGER.error("decryptTxtNoEx: Exception on sending default : " + e1);
+ LOGGER.warn("decryptTxtNoEx: Exception on sending default : " + e1);
return new byte[0];
}
}
diff --git a/packages/install/src/files/base.conf b/packages/install/src/files/base.conf
index 5f0ff7d..25a2a35 100644
--- a/packages/install/src/files/base.conf
+++ b/packages/install/src/files/base.conf
@@ -20,6 +20,7 @@
JAVA_HOME=/usr/lib/jvm/java-8-oracle
POLICY_HOME=/opt/app/policy
+POLICY_LOGS=/opt/app/policy/logs
KEYSTORE_PASSWD=PolicyR0ck$
JDBC_DRIVER=org.mariadb.jdbc.Driver