diff --git a/plugin/src/main/java/org/elasticsearch/xpack/ml/job/JobManager.java b/plugin/src/main/java/org/elasticsearch/xpack/ml/job/JobManager.java index 445c24f540f..89c27afe03f 100644 --- a/plugin/src/main/java/org/elasticsearch/xpack/ml/job/JobManager.java +++ b/plugin/src/main/java/org/elasticsearch/xpack/ml/job/JobManager.java @@ -278,8 +278,8 @@ public class JobManager extends AbstractComponent { CheckedConsumer apiResponseHandler = jobDeleted -> { if (jobDeleted) { logger.info("Job [" + jobId + "] deleted."); - actionListener.onResponse(new DeleteJobAction.Response(true)); auditor.info(jobId, Messages.getMessage(Messages.JOB_AUDIT_DELETED)); + actionListener.onResponse(new DeleteJobAction.Response(true)); } else { actionListener.onResponse(new DeleteJobAction.Response(false)); }