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