diff options
author | Jegadeesh Babu <jegabab1@in.ibm.com> | 2019-03-13 19:04:49 +0530 |
---|---|---|
committer | Joss Armstrong <joss.armstrong@ericsson.com> | 2019-03-14 11:19:42 +0000 |
commit | 3dfe6664bd1492bff4189f06c2e0f083b10f36f8 (patch) | |
tree | 2b13c4c572c5b580b70ec911a9725e80c995f01d /appc-adapters | |
parent | b3e8189197dda8dfc40fb64abdf9077adadf2242 (diff) |
Handle exception
Sonar fix
Issue-ID: APPC-1535
Change-Id: Ic980f53362a87cc8674252d6a8c4cb0cc50035c3
Signed-off-by: Jegadeesh Babu <jegabab1@in.ibm.com>
Diffstat (limited to 'appc-adapters')
-rw-r--r-- | appc-adapters/appc-rest-healthcheck-adapter/appc-rest-healthcheck-adapter-bundle/src/main/java/org/onap/appc/adapter/restHealthcheck/impl/RestHealthcheckAdapterImpl.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/appc-adapters/appc-rest-healthcheck-adapter/appc-rest-healthcheck-adapter-bundle/src/main/java/org/onap/appc/adapter/restHealthcheck/impl/RestHealthcheckAdapterImpl.java b/appc-adapters/appc-rest-healthcheck-adapter/appc-rest-healthcheck-adapter-bundle/src/main/java/org/onap/appc/adapter/restHealthcheck/impl/RestHealthcheckAdapterImpl.java index 9188a2e5f..eaa71c281 100644 --- a/appc-adapters/appc-rest-healthcheck-adapter/appc-rest-healthcheck-adapter-bundle/src/main/java/org/onap/appc/adapter/restHealthcheck/impl/RestHealthcheckAdapterImpl.java +++ b/appc-adapters/appc-rest-healthcheck-adapter/appc-rest-healthcheck-adapter-bundle/src/main/java/org/onap/appc/adapter/restHealthcheck/impl/RestHealthcheckAdapterImpl.java @@ -7,6 +7,7 @@ * Copyright (C) 2017 Amdocs * ================================================================================ * Modifications Copyright (C) 2019 Ericsson + * Modifications Copyright (C) 2019 IBM * ============================================================================= * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -104,6 +105,7 @@ public class RestHealthcheckAdapterImpl implements RestHealthcheckAdapter { status = Integer.toString(code.getStatusCode()); } catch (Exception e) { status = "500"; + logger.error("Error while casting Integer to String", e); } svcLogic.setStatus(OUTCOME_FAILURE); svcLogic.setAttribute("healthcheck.result.code", "200"); |