Skip to content

Commit

Permalink
optimized logging
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelenglert committed Dec 19, 2017
1 parent 60c109c commit 9105fa7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public void run () {
configuration.getExecutorService().execute(task);
}
}
logger.info("Finished gathering Metrics");
} catch (IOException e) {
e.printStackTrace();
} catch (InterruptedException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ private void extractMetrics(JsonNode json){
else if (currentDataNode.has("total")){ metricType = "total"; metricValue = currentDataNode.get("total").decimalValue(); }
else if (currentDataNode.has("last")){ metricType = "last"; metricValue = currentDataNode.get("last").decimalValue(); }
else if (currentDataNode.has("maximum")){ metricType = "maximum"; metricValue = currentDataNode.get("maximum").decimalValue(); }
else { logger.error("Invalid Type"); }
}
if (metricId != null && metricNameValue != null && metricType != null && metricUnit != null && metricValue != null){
MetricPrinter metricPrinter = new MetricPrinter(configuration.getMetricWriter());
Expand All @@ -85,7 +84,6 @@ private void extractMetrics(JsonNode json){
}
}
}
logger.info("Finished working on REST Call");
}

private static String extractMetridId(String fullId){
Expand Down

0 comments on commit 9105fa7

Please sign in to comment.