diff options
author | Dushyant Singh Thakur <dt00503496@techmahindra.com> | 2018-02-08 15:47:33 +0530 |
---|---|---|
committer | Dushyant Singh Thakur <dt00503496@techmahindra.com> | 2018-02-08 15:47:33 +0530 |
commit | 4b8458bdd03bec835029efac0e4d6709173fda0c (patch) | |
tree | 65b1eee43d5135aa9706f51aad66e0c8bfe6c7e0 /src/main/java | |
parent | dad864219b2adcf066e3eb6c54a1f1150f900979 (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-163
Change-Id: I731cb00d4a9fe6591a3f101072f63668bea6e574
Issue-ID: DMAAP-274
Signed-off-by: Dushyant Singh Thakur <dt00503496@techmahindra.com>
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/att/nsa/apiServer/metrics/cambria/DMaaPMetricsSender.java | 4 |
1 files changed, 2 insertions, 2 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 431163e..58cedce 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 @@ -161,9 +161,9 @@ public class DMaaPMetricsSender implements Runnable { o.put("transactionEnabled", false); fCambria.send(fHostname, o.toString()); } catch (JSONException e) { - log.warn("Error posting metrics to Cambria: " + e.getMessage()); + log.error("Error posting metrics to Cambria at send(): " + e); } catch (IOException e) { - log.warn("Error posting metrics to Cambria: " + e.getMessage()); + log.error("Error posting metrics to Cambria at send(): " + e); } } |