aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-be/backend/openecomp-sdc-healthcheck-manager/src/main
diff options
context:
space:
mode:
authorvempo <vitaliy.emporopulo@amdocs.com>2018-01-04 18:45:51 +0200
committerVitaly Emporopulo <Vitaliy.Emporopulo@amdocs.com>2018-01-04 19:35:32 +0000
commit19740db71482fae0760abfa3c7a9a5d171b6d597 (patch)
tree97be0d4adc78d68338fe643b9f0577d9f5815c68 /openecomp-be/backend/openecomp-sdc-healthcheck-manager/src/main
parent386af7e65bbc73f50f0c78b3a745c8c81ecad288 (diff)
Remove enter/exit debug #3
Change-Id: If2ea8d16a1fd1867b4b314290fdcfaeafef93c19 Issue-ID: SDC-875 Signed-off-by: vempo <vitaliy.emporopulo@amdocs.com>
Diffstat (limited to 'openecomp-be/backend/openecomp-sdc-healthcheck-manager/src/main')
-rw-r--r--openecomp-be/backend/openecomp-sdc-healthcheck-manager/src/main/java/org/openecomp/sdc/health/impl/HealthCheckManagerImpl.java27
1 files changed, 8 insertions, 19 deletions
diff --git a/openecomp-be/backend/openecomp-sdc-healthcheck-manager/src/main/java/org/openecomp/sdc/health/impl/HealthCheckManagerImpl.java b/openecomp-be/backend/openecomp-sdc-healthcheck-manager/src/main/java/org/openecomp/sdc/health/impl/HealthCheckManagerImpl.java
index f96b3a3b4e..dba724565f 100644
--- a/openecomp-be/backend/openecomp-sdc-healthcheck-manager/src/main/java/org/openecomp/sdc/health/impl/HealthCheckManagerImpl.java
+++ b/openecomp-be/backend/openecomp-sdc-healthcheck-manager/src/main/java/org/openecomp/sdc/health/impl/HealthCheckManagerImpl.java
@@ -1,9 +1,6 @@
-/*-
- * ============LICENSE_START=======================================================
- * SDC
- * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
- * ================================================================================
+/*
+ * Copyright © 2016-2017 European Support Limited
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@@ -15,7 +12,6 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
- * ============LICENSE_END=========================================================
*/
package org.openecomp.sdc.health.impl;
@@ -33,7 +29,6 @@ import org.openecomp.sdc.health.data.HealthCheckStatus;
import org.openecomp.sdc.health.data.MonitoredModules;
import org.openecomp.sdc.logging.api.Logger;
import org.openecomp.sdc.logging.api.LoggerFactory;
-import org.openecomp.sdc.logging.context.impl.MdcDataDebugMessage;
import java.util.ArrayList;
import java.util.Arrays;
@@ -43,15 +38,9 @@ import java.util.stream.Collectors;
public class HealthCheckManagerImpl implements HealthCheckManager {
- private static MdcDataDebugMessage mdcDataDebugMessage;
- private HealthCheckDao healthCheckDao;
-
- private static final Logger logger;
+ private static final Logger LOGGER = LoggerFactory.getLogger(HealthCheckManagerImpl.class);
- static {
- mdcDataDebugMessage = new MdcDataDebugMessage();
- logger = LoggerFactory.getLogger(HealthCheckManagerImpl.class);
- }
+ private HealthCheckDao healthCheckDao;
public HealthCheckManagerImpl() {
healthCheckDao = HealthCheckDaoFactory.getInstance().createInterface();
@@ -76,7 +65,7 @@ public class HealthCheckManagerImpl implements HealthCheckManager {
try {
zeHealthInfos = zusammenAdaptor.checkHealth(context);
} catch (Exception ex) {
- logger.error(ex.getMessage(), ex);
+ LOGGER.error(ex.getMessage(), ex);
zeHealthInfo = new org.openecomp.sdc.health.data.HealthInfo(
MonitoredModules.ZU, HealthCheckStatus.DOWN,
zVersion, ex.getMessage());
@@ -86,7 +75,7 @@ public class HealthCheckManagerImpl implements HealthCheckManager {
try {
cassandraHealth = healthCheckDao.checkHealth();
} catch (Exception ex) {
- logger.error(ex.getMessage(), ex);
+ LOGGER.error(ex.getMessage(), ex);
description = ex.getMessage();
cassandraHealthInfo = new org.openecomp.sdc.health.data.HealthInfo(
MonitoredModules.CAS, HealthCheckStatus.DOWN, zVersion, ex.getMessage());
@@ -119,7 +108,7 @@ public class HealthCheckManagerImpl implements HealthCheckManager {
}
} catch (Exception e) {
- logger.error(e.getMessage(), e);
+ LOGGER.error(e.getMessage(), e);
zeHealthInfo = new org.openecomp.sdc.health.data.HealthInfo(
MonitoredModules.ZU, HealthCheckStatus.DOWN, zVersion, e.getMessage()
);