Sonar critical issues 29/43529/1
authorSurendra Reddy Katam <SK00524980@techmahindra.com>
Wed, 18 Apr 2018 14:36:31 +0000 (20:06 +0530)
committerSurendra Reddy Katam <SK00524980@techmahindra.com>
Wed, 18 Apr 2018 14:36:31 +0000 (20:06 +0530)
 Either log or rethrow this exception
Sonar Link:
https://sonar.onap.org/project/issues?assignees=surendraReddy&id=org.onap.dmaap.messagerouter.msgrtr%3Amsgrtr&open=AV4-Vakn32hFUzlqc5yP&resolved=false&severities=CRITICAL
Location:
src/main/java/com/att/nsa/cambria/service/impl/MMServiceImpl.java
Line No-225

Change-Id: I5e879cf1f2d1a96ec7207278d9395fa8771c6e6f
Issue-ID: DMAAP-429
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
src/main/java/com/att/nsa/cambria/service/impl/MMServiceImpl.java

index da024f1..04cc51c 100644 (file)
@@ -223,7 +223,7 @@ public class MMServiceImpl implements MMService {
                        metricsSet.consumeTick(sent);
 
                } catch (UnavailableException excp) {
-
+                       LOG.error(excp.toString());
                        ErrorResponse errRes = new ErrorResponse(HttpStatus.SC_SERVICE_UNAVAILABLE,
                                        DMaaPResponseCode.SERVER_UNAVAILABLE.getResponseCode(),
                                        errorMessages.getServerUnav() + excp.getMessage(), null, Utils.getFormattedDate(new Date()), topic,