From 84c9ee81ae531e116f627a26faddd669e218eb78 Mon Sep 17 00:00:00 2001 From: Dushyant Singh Thakur Date: Fri, 9 Feb 2018 16:27:50 +0530 Subject: sonar critical for error handling Either log or rethrow this exception Sonar Link: https://sonar.onap.org/component_issues?id=org.onap.dmaap.messagerouter.msgrtr%3Amsgrtr#resolved=false|assignees=dthakur Location: src/main/java/com/att/nsa/cambria/backends/kafka/KafkaConsumerCache.java Line No-290 Change-Id: Ib4dfae7659d7f31a02ba4a8c85a0407b1e165743 Issue-ID: DMAAP-280 Signed-off-by: Dushyant Singh Thakur --- .../java/com/att/nsa/cambria/backends/kafka/KafkaConsumerCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/com/att/nsa/cambria/backends/kafka/KafkaConsumerCache.java b/src/main/java/com/att/nsa/cambria/backends/kafka/KafkaConsumerCache.java index 5f38443..7b6e048 100644 --- a/src/main/java/com/att/nsa/cambria/backends/kafka/KafkaConsumerCache.java +++ b/src/main/java/com/att/nsa/cambria/backends/kafka/KafkaConsumerCache.java @@ -288,7 +288,7 @@ public class KafkaConsumerCache { curatorConsumerCache.close(); log.info("Curator client closed"); } catch (ZkInterruptedException e) { - log.warn("Curator client close interrupted: " + e.getMessage()); + log.error("Curator client close interrupted: " + e); } catch (IOException e) { log.warn("Error while closing curator PathChildrenCache for KafkaConsumerCache" + e.getMessage()); } -- cgit 1.2.3-korg