diff --git a/src/main/java/com/amazon/opendistro/elasticsearch/performanceanalyzer/collectors/PerformanceAnalyzerMetricsCollector.java b/src/main/java/com/amazon/opendistro/elasticsearch/performanceanalyzer/collectors/PerformanceAnalyzerMetricsCollector.java index edca6155d..5ab62b1cf 100644 --- a/src/main/java/com/amazon/opendistro/elasticsearch/performanceanalyzer/collectors/PerformanceAnalyzerMetricsCollector.java +++ b/src/main/java/com/amazon/opendistro/elasticsearch/performanceanalyzer/collectors/PerformanceAnalyzerMetricsCollector.java @@ -54,7 +54,6 @@ public void setStartTime(long startTime) { public void run() { try { - long startTime = System.nanoTime(); Util.invokePrivileged(() -> collectMetrics(startTime)); } catch (Exception ex) { // - should not be any...but in case, absorbing here @@ -66,7 +65,6 @@ public void run() { () -> StatExceptionCode.OTHER_COLLECTION_ERROR.toString()); StatsCollector.instance().logException(StatExceptionCode.OTHER_COLLECTION_ERROR); } finally { - LOG.debug("{} took {} time to execute", collectorName, System.nanoTime() - startTime); bInProgress.set(false); } }