From: Snigdha Sucharita Patra Date: Tue, 23 Jan 2018 03:43:52 +0000 (+0530) Subject: sonar critical for Exception handling X-Git-Tag: 2.0.0-ONAP~53^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=8753d4434d8fd5e550977c7bf1a2f70f3954d1ba;p=dcaegen2%2Fplatform%2Finventory-api.git sonar critical for Exception handling Either log or rethrow this exception Sonar Link: https://sonar.onap.org/component_issues/index?id=org.onap.dcaegen2.platform%3Ainventory-api#severities=CRITICAL|assignees=Snigdha503415 Location: src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java Line No-118 Change-Id: I98ebe37fa928cb9fdbbaf841987902f9fe3fb693 Issue-ID: DCAEGEN2-216 Signed-off-by: Snigdha Sucharita Patra --- diff --git a/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java b/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java index b418ee8..d311303 100644 --- a/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java +++ b/src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java @@ -116,7 +116,7 @@ public class DcaeServicesApiServiceImpl extends DcaeServicesApiService { LOG.warn(String.format("Feed/topic does not exist: %s", sco.getComponentId())); } } catch (DatabusControllerClientException e) { - LOG.warn(String.format("%s, %s", e.getMessage(), sco.toString())); + LOG.warn(String.format("%s, %s", e.getMessage(), sco.toString()), e); } } } else {