package org.stagemonitor.logging;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.stagemonitor.core.elasticsearch.AbstractElasticsearchFirstAvailabilityObserver;
import org.stagemonitor.core.elasticsearch.ElasticsearchClient;

public class ElasticsearchLoggingAvailabilityObserver extends AbstractElasticsearchFirstAvailabilityObserver {
	private final Logger logger = LoggerFactory.getLogger(ElasticsearchLoggingAvailabilityObserver.class);

	@Override
	protected void onElasticsearchFirstAvailable(ElasticsearchClient elasticsearchClient) {
		logger.debug("sending grafana ElasticsearchLogging...");
		elasticsearchClient.sendMetricDashboardBulkAsync("kibana/Logging.bulk");
		logger.debug("sent grafana ElasticsearchLogging...");
	}

}

@@ -32,65 +32,8 @@
 g;%0A%0A
-import org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A
 impo
@@ -298,112 +298,8 @@
 er %7B
-%0A%09private final Logger logger = LoggerFactory.getLogger(ElasticsearchLoggingAvailabilityObserver.class);
 %0A%0A%09@
@@ -400,67 +400,8 @@
 ) %7B%0A
-%09%09logger.debug(%22sending grafana ElasticsearchLogging...%22);%0A
 %09%09el
@@ -475,64 +475,8 @@
 %22);%0A
-%09%09logger.debug(%22sent grafana ElasticsearchLogging...%22);%0A
 %09%7D%0A%0A

Remove misleading logger