From 1760677b0e699597ccd46f301a131c23e2ae9106 Mon Sep 17 00:00:00 2001 From: Dimitrios Athanasiou Date: Tue, 11 Apr 2017 10:44:00 +0100 Subject: [PATCH] [ML] Remove redundant logging Relates elastic/x-pack-elasticsearch#1027 Original commit: elastic/x-pack-elasticsearch@ddbe390e6fd852fdd93dfaf2f9b20ec14c9c37d7 --- .../org/elasticsearch/xpack/ml/action/StartDatafeedAction.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugin/src/main/java/org/elasticsearch/xpack/ml/action/StartDatafeedAction.java b/plugin/src/main/java/org/elasticsearch/xpack/ml/action/StartDatafeedAction.java index 3310a6d753f..25907c57cf9 100644 --- a/plugin/src/main/java/org/elasticsearch/xpack/ml/action/StartDatafeedAction.java +++ b/plugin/src/main/java/org/elasticsearch/xpack/ml/action/StartDatafeedAction.java @@ -424,10 +424,8 @@ public class StartDatafeedAction StartDatafeedAction.validate(request.getDatafeedId(), mlMetadata, tasks); Assignment assignment = selectNode(logger, request.getDatafeedId(), clusterState, resolver); if (assignment.getExecutorNode() == null) { - DatafeedConfig datafeed = mlMetadata.getDatafeed(request.getDatafeedId()); String msg = "No node found to start datafeed [" + request.getDatafeedId() + "], allocation explanation [" + assignment.getExplanation() + "]"; - logger.warn("[{}] {}", datafeed.getJobId(), msg); throw new ElasticsearchException(msg); } } else {