Logged exceptions
Issue-ID: CCSDK-818
Change-Id: I90fc2d9c8d7e2627fc2c1f80628a9f4a0e7531da
Signed-off-by: ezhil <ezhrajam@in.ibm.com>
if (e instanceof NengException) {
throw e;
} else {
- e.printStackTrace();
+ log.warning(e.getMessage());
throw new Exception("Internal error occurred while processing the request");
}
}
try {
return policyDetailsRepository.findPolicyResponseByName(policyName);
} catch (Exception e) {
+ log.warning(e.getMessage());
return new PolicyDetails();
}
}
if (e instanceof NengException) {
throw e;
} else {
- e.printStackTrace();
+ log.warning(e.getMessage());
throw new Exception("Internal error occurred while processing the request");
}
}