aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2019-07-05 23:01:20 +0530
committerArundathi Patil <arundpil@in.ibm.com>2019-07-05 23:01:34 +0530
commit405dd0aaef78d26a0c7ce38ffdb3b894c43481e6 (patch)
tree4cbc1205cad4d0a5dd7b987f13f247368b62330f /src
parent5b43c6998e98f2fe9695f8dc9dc86be8bac2a320 (diff)
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 <arundpil@in.ibm.com>
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/onap/music/eelf/healthcheck/MusicHealthCheck.java4
1 files changed, 1 insertions, 3 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 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) {