From: Dushyant Singh Thakur Date: Mon, 26 Feb 2018 06:33:32 +0000 (+0530) Subject: sonar critical for error handling X-Git-Tag: v1.1.2~10^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=9ca85a2b198d41d6e304f493ffe4447c40eaf45c;p=dmaap%2Fmessagerouter%2Fmsgrtr.git sonar critical for error handling Either log or rethrow this exception Sonar Link: https://sonar.onap.org/project/issues?assignees=dthakur&id=org.onap.dmaap.messagerouter.msgrtr%3Amsgrtr&resolved=false&severities=CRITICAL Location: src/main/java/com/att/nsa/cambria/service/impl/MMServiceImpl.java Line No-216 Change-Id: Ic0e68af22eb8a4a64d5c8b4709e6592e582cbfcd Issue-ID: DMAAP-307 Signed-off-by: Dushyant Singh Thakur --- diff --git a/src/main/java/com/att/nsa/cambria/service/impl/MMServiceImpl.java b/src/main/java/com/att/nsa/cambria/service/impl/MMServiceImpl.java index 4f6a9a1..7fe1eac 100644 --- a/src/main/java/com/att/nsa/cambria/service/impl/MMServiceImpl.java +++ b/src/main/java/com/att/nsa/cambria/service/impl/MMServiceImpl.java @@ -214,7 +214,7 @@ public class MMServiceImpl implements MMService { try { coes.write(baos); } catch (Exception ex) { - + LOG.error("Exception at subscribe(.......): " + ex); } c.commitOffsets();