Sonar critical issues 91/38491/1
authorSurendra Reddy Katam <SK00524980@techmahindra.com>
Mon, 26 Mar 2018 10:45:26 +0000 (16:15 +0530)
committerSurendra Reddy Katam <SK00524980@techmahindra.com>
Mon, 26 Mar 2018 10:45:26 +0000 (16:15 +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=AV4-MbQ-32hFUzlqc5br&resolved=false&severities=CRITICAL
Location:
src/main/java/com/att/nsa/mr/client/impl/MRConsumerImpl.java
Line No-575

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

index c4c4104..b1df8ce 100644 (file)
@@ -573,7 +573,7 @@ public class MRConsumerImpl extends MRBaseClient implements MRConsumer {
                        MRClientFactory.prop.load(new FileReader(new File(MRClientFactory.routeFilePath)));
 
                } catch (Exception ex) {
-                       log.error("Reply Router Error " + ex.toString());
+                       log.error("Reply Router Error " + ex);
                }
                String routeOffer = MRClientFactory.prop.getProperty(routeKey);
                return routeOffer;