From acdf334dbe2304c116aa9101125955d3ca9dabb5 Mon Sep 17 00:00:00 2001 From: Surendra Reddy Katam Date: Tue, 10 Apr 2018 11:59:55 +0530 Subject: [PATCH] Sonar critical issues Either log or rethrow this exception Sonar Link: https://sonar.onap.org/project/issues?assignees=surendraReddy&id=org.onap.dmaap.messagerouter.msgrtr%3Amsgrtr&open=AV4-Vac632hFUzlqc5ph&resolved=false&severities=CRITICAL Location: src/main/java/com/att/nsa/cambria/beans/DMaaPKafkaConsumerFactory.java Line No-189 Change-Id: Idec33f4ce7e00d5069ea6206a596edd677364f00 Issue-ID: DMAAP-400 Signed-off-by: Surendra Reddy Katam --- src/main/java/com/att/nsa/cambria/beans/DMaaPKafkaConsumerFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/att/nsa/cambria/beans/DMaaPKafkaConsumerFactory.java b/src/main/java/com/att/nsa/cambria/beans/DMaaPKafkaConsumerFactory.java index 59dc9bf..02ae109 100644 --- a/src/main/java/com/att/nsa/cambria/beans/DMaaPKafkaConsumerFactory.java +++ b/src/main/java/com/att/nsa/cambria/beans/DMaaPKafkaConsumerFactory.java @@ -187,7 +187,7 @@ public class DMaaPKafkaConsumerFactory implements ConsumerFactory { " String consumerId, int timeoutMs) : " + x); throw new UnavailableException("Couldn't connect to ZK."); } catch (KafkaConsumerCacheException e) { - log.warn("Failed to cache consumer (this may have performance implications): " + log.error("Failed to cache consumer (this may have performance implications): " + e.getMessage()); } catch (Exception e) { throw new UnavailableException( -- 2.16.6