From 405dd0aaef78d26a0c7ce38ffdb3b894c43481e6 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Fri, 5 Jul 2019 23:01:20 +0530 Subject: Fixed sonar issues in MusicHealthCheck.java Fixed multiple sonar issues across this file Issue-ID: MUSIC-428 Change-Id: I9e6843226bc3544411334af7070e5c67f072e159 Signed-off-by: Arundathi Patil --- src/main/java/org/onap/music/eelf/healthcheck/MusicHealthCheck.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main/java/org') 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 cf4b2bc9..fbfc0de6 100644 --- a/src/main/java/org/onap/music/eelf/healthcheck/MusicHealthCheck.java +++ b/src/main/java/org/onap/music/eelf/healthcheck/MusicHealthCheck.java @@ -32,7 +32,6 @@ import org.onap.music.eelf.logging.EELFLoggerDelegate; import org.onap.music.eelf.logging.format.AppMessages; import org.onap.music.eelf.logging.format.ErrorSeverity; import org.onap.music.eelf.logging.format.ErrorTypes; -import org.onap.music.exceptions.MusicLockingException; import org.onap.music.exceptions.MusicQueryException; import org.onap.music.exceptions.MusicServiceException; import org.onap.music.main.MusicUtil; @@ -68,7 +67,7 @@ public class MusicHealthCheck { result = getAdminKeySpace(consistency, randomUUID); } } catch (MusicServiceException e1) { - logger.error(EELFLoggerDelegate.errorLogger, e1.getMessage(), AppMessages.UNKNOWNERROR, ErrorSeverity.ERROR, ErrorTypes.UNKNOWN); + logger.error(EELFLoggerDelegate.errorLogger, e1.getMessage(), AppMessages.UNKNOWNERROR, ErrorSeverity.ERROR, ErrorTypes.UNKNOWN, e1); } catch (MusicQueryException e1) { logger.error(EELFLoggerDelegate.errorLogger, e1.getMessage(), AppMessages.UNKNOWNERROR, ErrorSeverity.ERROR, ErrorTypes.UNKNOWN,e1); } @@ -80,7 +79,6 @@ public class MusicHealthCheck { try { cleanHealthCheckId(randomUUID); } catch (MusicServiceException | MusicQueryException e) { - // TODO Auto-generated catch block logger.error("Error while cleaning healthcheck record id...", e); } if (result) { -- cgit 1.2.3-korg