sonar critical for Exception Handling 67/30667/1
authorSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Wed, 7 Feb 2018 13:19:26 +0000 (18:49 +0530)
committerSoumendu Sekhar Acharya <sa00498080@techmahindra.com>
Wed, 7 Feb 2018 13:19:26 +0000 (18:49 +0530)
log this exception
Sonar Link:
https://sonar.onap.org/component_issues/index?id=org.onap.dmaap.messagerouter.messageservice%3AdmaapMR1#resolved=false|severities=CRITICAL|assignees=Soumendu
Location:
src/main/java/com/att/nsa/dmaap/service/MMRestService.java
Line No-592

Change-Id: Ic7cdbe3a8efdfb89becf25265aac670244323bb9
Issue-ID: DMAAP-273
Signed-off-by: Soumendu Sekhar Acharya <sa00498080@techmahindra.com>
src/main/java/com/att/nsa/dmaap/service/MMRestService.java

index 206e719..ab457e5 100644 (file)
@@ -590,7 +590,7 @@ public class MMRestService {
                        LOGGER.error(errMsg);
 
                } catch (JSONException | IOException e) {
-                       LOGGER.error(errMsg);
+                       LOGGER.error("Error at sendErrResponse method:" + errMsg + "Exception name:" + e.getMessage());
                }
        }