summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDushyant Singh Thakur <dt00503496@techmahindra.com>2018-02-08 15:59:07 +0530
committerDushyant Singh Thakur <dt00503496@techmahindra.com>2018-02-08 15:59:07 +0530
commit9e7de354f2c957076411f7c0d95af3d4ee44b237 (patch)
tree7b68cc33a273a89ea9cd3315d6f23417e86d6d90
parent4b8458bdd03bec835029efac0e4d6709173fda0c (diff)
sonar critical for errorhandling
Either log or rethrow the exception Sonar Link: https://sonar.onap.org/component_issues?id=org.onap.dmaap.messagerouter.msgrtr%3Amsgrtr#resolved=false|severities=CRITICAL|assignees=dthakur Location: src/main/java/com/att/nsa/apiServer/metrics/cambria/DMaaPMetricsSender.java Line No-165 Change-Id: Ic0c9cc14ff55e399710ee80257eed148399ac781 Issue-ID: DMAAP-275 Signed-off-by: Dushyant Singh Thakur <dt00503496@techmahindra.com>
-rw-r--r--src/main/java/com/att/nsa/apiServer/metrics/cambria/DMaaPMetricsSender.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/att/nsa/apiServer/metrics/cambria/DMaaPMetricsSender.java b/src/main/java/com/att/nsa/apiServer/metrics/cambria/DMaaPMetricsSender.java
index 58cedce..a7b0598 100644
--- a/src/main/java/com/att/nsa/apiServer/metrics/cambria/DMaaPMetricsSender.java
+++ b/src/main/java/com/att/nsa/apiServer/metrics/cambria/DMaaPMetricsSender.java
@@ -163,7 +163,7 @@ public class DMaaPMetricsSender implements Runnable {
} catch (JSONException e) {
log.error("Error posting metrics to Cambria at send(): " + e);
} catch (IOException e) {
- log.error("Error posting metrics to Cambria at send(): " + e);
+ log.error("Error posting metrics to Cambria at send(): " + e );
}
}