diff --git a/plugin/src/main/java/org/elasticsearch/xpack/ml/job/process/autodetect/NativeAutodetectProcess.java b/plugin/src/main/java/org/elasticsearch/xpack/ml/job/process/autodetect/NativeAutodetectProcess.java index ed594403f5b..ed4c6582f95 100644 --- a/plugin/src/main/java/org/elasticsearch/xpack/ml/job/process/autodetect/NativeAutodetectProcess.java +++ b/plugin/src/main/java/org/elasticsearch/xpack/ml/job/process/autodetect/NativeAutodetectProcess.java @@ -148,10 +148,9 @@ class NativeAutodetectProcess implements AutodetectProcess { } LOGGER.debug("[{}] Autodetect process exited", jobId); } catch (ExecutionException | TimeoutException e) { - LOGGER.warn(new ParameterizedMessage("[{}] Exception closing the running autodetect process", - new Object[] { jobId }), e); + LOGGER.warn(new ParameterizedMessage("[{}] Exception closing the running autodetect process", jobId), e); } catch (InterruptedException e) { - LOGGER.warn("[{}] Exception closing the running autodetect process", jobId); + LOGGER.warn(new ParameterizedMessage("[{}] Exception closing the running autodetect process", jobId), e); Thread.currentThread().interrupt(); } finally { deleteAssociatedFiles();