From 5ab175f66c42ab1b9a476bd2c88abadc289553ad Mon Sep 17 00:00:00 2001 From: Driptaroop Das Date: Fri, 18 Jan 2019 17:27:08 +0530 Subject: Sonar Fixes - MusicHealthCheck.java Sonar Fixes - MusicHealthCheck.java Issue-ID: MUSIC-274 Change-Id: I0e63d3dabf47c2aa340408638c85dd2534baaf67 Signed-off-by: Driptaroop Das --- src/main/java/org/onap/music/eelf/healthcheck/MusicHealthCheck.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/onap/music/eelf/healthcheck/MusicHealthCheck.java b/src/main/java/org/onap/music/eelf/healthcheck/MusicHealthCheck.java index af6e6151..837e37c2 100644 --- a/src/main/java/org/onap/music/eelf/healthcheck/MusicHealthCheck.java +++ b/src/main/java/org/onap/music/eelf/healthcheck/MusicHealthCheck.java @@ -87,7 +87,7 @@ public class MusicHealthCheck { pQuery.appendQueryString("insert into admin.healthcheck (id) values (?)"); pQuery.addValue(UUID.randomUUID()); ResultType rs = MusicCore.nonKeyRelatedPut(pQuery, consistency); - System.out.println(rs); + logger.info(rs.toString()); if (rs != null) { return Boolean.TRUE; } else { @@ -119,7 +119,7 @@ public class MusicHealthCheck { String host = MusicUtil.getMyZkHost(); logger.info(EELFLoggerDelegate.applicationLogger, "Getting Status for Zookeeper Host: " + host); try { - MusicLockingService lockingService = MusicCore.getLockingServiceHandle(); + MusicCore.getLockingServiceHandle(); // additionally need to call the ZK to create,aquire and delete lock } catch (MusicLockingException e) { logger.error(EELFLoggerDelegate.errorLogger, e.getMessage(), AppMessages.LOCKINGERROR, -- cgit 1.2.3-korg