diff options
author | Snigdha Sucharita Patra <sp00503415@techmahindra.com> | 2018-01-19 13:26:18 +0530 |
---|---|---|
committer | Snigdha Sucharita Patra <sp00503415@techmahindra.com> | 2018-01-19 13:26:18 +0530 |
commit | 9cd3525187517fac8af5e494009f1c1ef0d6fa16 (patch) | |
tree | 4c0f59f6109ca78b5b8ce99e4a54f5f77a64e680 /src/main | |
parent | 929c29a9c6a9a7e91fe01d18e353cdb6a29bc3d9 (diff) |
sonar critical for Exception handling
Either log or rethrow this exception
Sonar Link:
https://sonar.onap.org/component_issues?id=org.onap.dcaegen2.platform%3Ainventory-api#resolved=false|severities=CRITICAL|assignees=Snigdha503415
Location:
src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java
Line No-104
Change-Id: I6c93a308b0e069cd13d59387efc99340e408a7d2
Issue-ID: DCAEGEN2-209
Signed-off-by: Snigdha Sucharita Patra <sp00503415@techmahindra.com>
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java b/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java index 4ef1a46..b418ee8 100644 --- a/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java +++ b/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java @@ -102,7 +102,7 @@ public class DcaeServicesApiServiceImpl extends DcaeServicesApiService { .rel("component").title(component.getComponentId()).build(); component.setComponentLink(componentLink); } catch (DCAEControllerClientException e) { - LOG.warn(String.format("%s, %s", e.getMessage(), sco.toString())); + LOG.warn(String.format("%s, %s", e.getMessage(), sco.toString()), e); } } } else if (COMPONENT_SOURCE_DATA_BUS_CONTROLLER.equals(sco.getComponentSource().toUpperCase(Locale.ENGLISH))) { |