[ML] Fix logger usage
Original commit: elastic/x-pack-elasticsearch@f85148e0ff
This commit is contained in:
parent
16d8dc6815
commit
0df726f6dd
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue