[ML] Fix logger usage

Original commit: elastic/x-pack-elasticsearch@f85148e0ff
This commit is contained in:
Dimitrios Athanasiou 2017-04-08 15:52:44 +01:00
parent 16d8dc6815
commit 0df726f6dd
1 changed files with 1 additions and 1 deletions

View File

@ -407,7 +407,7 @@ public class OpenJobAction extends Action<OpenJobAction.Request, OpenJobAction.R
if (assignment.getExecutorNode() == null) { if (assignment.getExecutorNode() == null) {
String msg = "Could not open job because no suitable nodes were found, allocation explanation [" String msg = "Could not open job because no suitable nodes were found, allocation explanation ["
+ assignment.getExplanation() + "]"; + assignment.getExplanation() + "]";
logger.warn("[{}] {}", msg); logger.warn("[{}] {}", request.getJobId(), msg);
auditor.warning(request.getJobId(), msg); auditor.warning(request.getJobId(), msg);
throw new ElasticsearchStatusException(msg, RestStatus.TOO_MANY_REQUESTS); throw new ElasticsearchStatusException(msg, RestStatus.TOO_MANY_REQUESTS);
} }