sonar critical for Exception handling 47/28847/1
authorSnigdha Sucharita Patra <sp00503415@techmahindra.com>
Tue, 23 Jan 2018 03:43:52 +0000 (09:13 +0530)
committerSnigdha Sucharita Patra <sp00503415@techmahindra.com>
Tue, 23 Jan 2018 03:44:25 +0000 (09:14 +0530)
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 <sp00503415@techmahindra.com>
src/main/java/io/swagger/api/impl/DcaeServicesApiServiceImpl.java

index b418ee8..d311303 100644 (file)
@@ -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 {