Sonar critila issues 51/37651/1
authorSurendra Reddy Katam <SK00524980@techmahindra.com>
Thu, 22 Mar 2018 04:44:00 +0000 (10:14 +0530)
committerSurendra Reddy Katam <SK00524980@techmahindra.com>
Thu, 22 Mar 2018 04:46:15 +0000 (10:16 +0530)
 Either log or rethrow this exception
Sonar Link:
https://sonar.onap.org/project/issues?assignees=surendraReddy&id=org.onap.dmaap.messagerouter.dmaapclient%3AdmaapClient&open=AWEpWaiA-08if2a6yEW5&resolved=false&severities=CRITICAL
Location:
src/main/java/com/att/nsa/mr/client/impl/MRConsumerImpl.java
Line No-258

Change-Id: Ia92c5b8cb5d31206502de2f8b2bacb85af2184e9
Issue-ID: DMAAP-339
Signed-off-by: Surendra Reddy Katam <SK00524980@techmahindra.com>
src/main/java/com/att/nsa/mr/client/impl/MRConsumerImpl.java

index 78f37fc..185371b 100644 (file)
@@ -258,6 +258,7 @@ public class MRConsumerImpl extends MRBaseClient implements MRConsumer {
                                } catch (JSONException e) {
                                        // unexpected response
                                        reportProblemWithResponse();
+                                       log.error("exception: ", e);
                                } catch (HttpException e) {
                                        throw new IOException(e);
                                }