diff options
author | Arundathi Patil <arundpil@in.ibm.com> | 2018-08-31 21:24:33 +0530 |
---|---|---|
committer | IBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com> | 2018-08-31 21:24:49 +0530 |
commit | 27ff7cbbcda5a555922d16a19e424a430bd9cac4 (patch) | |
tree | 70ca92b61b169e2f35232f28594f6510aa85ff8b | |
parent | dabb73bcd7bffba2153d543f847ffed7aea6f1fe (diff) |
AafDecrypt.java: Fixed sonar issue
Fixed sonar issue, either log or rethrow the error
Issue-ID: DMAAP-692
Change-Id: I4576608f31f27c4bc345194698596099b036af20
Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
-rw-r--r-- | src/main/java/org/onap/dmaap/dbcapi/aaf/AafDecrypt.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/onap/dmaap/dbcapi/aaf/AafDecrypt.java b/src/main/java/org/onap/dmaap/dbcapi/aaf/AafDecrypt.java index 8728988..31e2a34 100644 --- a/src/main/java/org/onap/dmaap/dbcapi/aaf/AafDecrypt.java +++ b/src/main/java/org/onap/dmaap/dbcapi/aaf/AafDecrypt.java @@ -36,6 +36,7 @@ public class AafDecrypt extends BaseLoggingClass { dec = (DecryptionInterface) (Class.forName(dClass).newInstance()); dec.init( p.getProperty("CredentialCodecKeyfile", "LocalKey")); } catch (Exception ee ) { + logger.error("Error", ee); errorLogger.error(DmaapbcLogMessageEnum.UNEXPECTED_CONDITION, "attempting to instantiate " + dClass ); } } @@ -46,6 +47,7 @@ public class AafDecrypt extends BaseLoggingClass { try { pwd = dec.decrypt( encPwd ); } catch( IOException io ) { + logger.error("Error", io); errorLogger.error(DmaapbcLogMessageEnum.DECRYPT_IO_ERROR, dClass, encPwd ); } |